git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Document escaping of special characters in gitignore files

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 5, 2011, 21:02 UTC
Message-ID
<201101052202.34043.jnareb@gmail.com>
In-Reply-To
<7vk4ijccji.fsf@alter.siamese.dyndns.org>
On Wed, 5 Jan 2011, Junio C Hamano wrote:
Show 8 quoted lines
> Perhaps a single liner comment to describe the three examples immediately
> below "exclude patterns (uncomment them..." is in order in that case,
> something like:
> 
> # exclude patterns (object and library, emacs backup, emacs autosave
> # files) -- uncomment if you want to use them
> # *.[oa]
> # *~

Errr... I think that '*~' pattern is generic UNIX backup, like '*.bak' is for MS-DOS / MS Windows.

http://en.wikipedia.org/wiki/Tilde#Backup_filenames
  Backup filenames
  The dominant Unix convention for naming backup copies of files is
  appending a tilde to the original file name. It originated with the
  Emacs text editor[citation needed] and was adopted by many other
  editors and some command-line tools.
> # \#*#

Anyway, should I reroll this patch with above addition? Should I add an explanation why we can use `\#` but need to use "{tilde}#"?

-- 
Jakub Narebski
Poland
Previous: Junio C Hamano
Message 8 of 8 in “Document escaping of special characters in gitignore files”
  1. Document escaping of special characters in gitignore filesJakub Narebski, Jan 5, 2011
  2. Andreas SchwabJan 5, 2011
  3. Junio C HamanoJan 5, 2011
  4. Jakub NarebskiJan 5, 2011
  5. Thomas RastJan 5, 2011
  6. Bruce KorbJan 5, 2011
  7. Junio C HamanoJan 5, 2011
  8. Jakub NarebskiJan 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.