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

git 1.7.10.msysgit.1: different behaviour in ".gitignore" and ".git/info/exclude"

From
TWThomas Wichern <nordertom@gmx.de>
Date
May 30, 2012, 08:43 UTC
Message-ID
<96434119.20120530104356@gmx.de>
Hi,

I noticed the following difference when using the pattern "/(*)/" (ignore all directories where the name is enclosed in parenthesis)

If you have a ".gitignore" - file that contains the pattern "/(*)/", a directory that matches the pattern is ignored completely.

If you put the same pattern into the ".git/info/exclude" - file, the pattern does not work - these directories still show up.

I expected that all directories anywhere the repository that match the pattern to be ignored.

Am I doing something wrong? Is the pattern not correct?

Horrido, Thomas

--- git version 1.7.10.msysgit.1 Windows 7 Pro

Next: Johannes Sixt
Message 1 of 3 in “git 1.7.10.msysgit.1: different behaviour in ".gitignore" and ".git/info/exclude"”
  1. Thomas WichernMay 30, 2012
  2. Johannes SixtMay 30, 2012
  3. Thomas WichernMay 30, 2012

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.