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

Re: How do I stop git enumerating my working directory

From
PGPaul Gardiner <lists@glidos.net>
Date
Jul 2, 2008, 14:51 UTC
Message-ID
<486B95D8.9030106@glidos.net>
In-Reply-To
<vpqr6ad5zms.fsf@bauges.imag.fr>
Matthieu Moy wrote:
Show 11 quoted lines
> Paul Gardiner <lists@glidos.net> writes:
> 
>> I don't think I can make .gitignore files do the job, because
>> it seems that you can set up to ignore a whole directory,
>> and then partially countermand that by placing a .gitignore
>> file (containing ! commands) inside the directory.
> 
> To me, it seems the opposite ;-).
> 
> I just tried to "git init" my $HOME, then "git status" takes forever,
> but "echo '*' > .gitignore; git status" completes immediately.

Ok, I was confusing myself because of having added files inside subdirectories of the ignored directory. I'm glad it works the way it does. Makes much more sense than what I'd thought it was doing.

P.
Previous: Matthieu MoyNext: Brian Gernhardt
Message 3 of 5 in “How do I stop git enumerating my working directory”
  1. Paul GardinerJul 1, 2008
  2. Matthieu MoyJul 1, 2008
  3. Paul GardinerJul 2, 2008
  4. Brian GernhardtJul 1, 2008
  5. Paul GardinerJul 2, 2008

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.