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

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

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Jan 5, 2011, 15:53 UTC
Message-ID
<m27hejtkil.fsf@igel.home>
In-Reply-To
<1294234732-20094-1-git-send-email-jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 9 quoted lines
> diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
> index 7dc2e8b..20abc20 100644
> --- a/Documentation/gitignore.txt
> +++ b/Documentation/gitignore.txt
> @@ -68,6 +68,7 @@ Patterns have the following format:
>     for readability.
>  
>   - A line starting with # serves as a comment.
> +   Use `\#` for a literal # character starting filename.
Should this be written as `{backslash}#`?
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Jakub NarebskiNext: Junio C Hamano
Message 2 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.