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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 10, 2010, 19:41 UTC
Message-ID
<201009102141.30416.jnareb@gmail.com>
In-Reply-To
<AANLkTi=D2M-QrbLodunphy+KJYt7eyfWsgzbwcBSZNyS@mail.gmail.com>
Bruce Korb wrote:
Show 22 quoted lines
> On Fri, Sep 10, 2010 at 11:59 AM, Ævar Arnfjörð Bjarmason
> <avarab@gmail.com> wrote:
>> On Fri, Sep 10, 2010 at 18:52, Jakub Narebski <jnareb@gmail.com> wrote:
>>> Bruce Korb <bruce.korb@gmail.com> writes:
>>>
>>>> After trying lots of variations, I found it to be:
>>>>
>>>> \#*
>>>>
>>>> Not obvious and not easy to look up.  Please add it to your
>>>> .git/info/exclude sample text.  Thanks!
>>>
>>> Well, it is quite obvious to me, as escaping special characters using
>>> backslash is typical in Unix tools.
> 
> Like cscope, for example?
> 
>   "#what ever"
> 
> Others use:
> 
>    ./#whatever

Actually "/#whatever" would also work, but it would have different meaning, anchoring filename so only files in given directory matches.

> 
> /etc/fstab requires \octal escapes, and not \xFF.
They are not escapes, but quoting of metacharacters (special characters).
> 
> There are many unix standards to choose from, hence my suggestion. :)
> That backslashes are sometimes used meant I found it before  pressing
> "send".
:-)
-- 
Jakub Narebski
Poland
Previous: Bruce KorbNext: Jakub Narebski
Message 5 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.