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

Re: How do I .gitignore files starting with "#"?

From
Bruce Korb <bruce.korb@gmail.com>
Date
Sep 10, 2010, 20:52 UTC
Message-ID
<AANLkTim4+_GWdnzEGsiqwbySN7uy+7MgwnCYXWiVgjqQ@mail.gmail.com>
In-Reply-To
<201009102156.31439.jnareb@gmail.com>
On Fri, Sep 10, 2010 at 12:56 PM, Jakub Narebski <jnareb@gmail.com> wrote:
> Jakub Narebski wrote:
>
>> Something like this?
> diff --git a/Documentation/gitignore.txt b/Documentation/gitignore.txt
> index 7dc2e8b..20abc20 100644
> --- a/Documentation/gitignore.txt
I think the prototype for info/exclude is a good idea, too.
>> /etc/fstab requires \octal escapes, and not \xFF.
>
> They are not escapes, but quoting of metacharacters (special characters).

./# \# "#" \043 \x23 &35;

whatever you care to call it, however you spell it, the result is intended to be the same: This sequence of characters is to be interpreted as part of the token and not special annotation (or token separator) characters.

Anyway, thanks for fixing the doc.  - Bruce
Previous: Jakub Narebski
Message 8 of 8 in “How do I .gitignore files starting with "#"?”
  1. Bruce KorbSep 10, 2010
  2. Jakub NarebskiSep 10, 2010
  3. Ævar Arnfjörð BjarmasonSep 10, 2010
  4. Bruce KorbSep 10, 2010
  5. Jakub NarebskiSep 10, 2010
  6. Jakub NarebskiSep 10, 2010
  7. Jakub NarebskiSep 10, 2010
  8. Bruce KorbSep 10, 2010

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.