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

Re: Improved "git add"

From
Petr Baudis <pasky@suse.cz>
Date
Sep 18, 2005, 22:17 UTC
Message-ID
<20050918221702.GE22391@pasky.or.cz>
In-Reply-To
<20050918212904.GB1463@schottelius.org>

Dear diary, on Sun, Sep 18, 2005 at 11:29:04PM CEST, I got a letter where Nico -telmich- Schottelius <nico-linux-git@schottelius.org> told me that...

Show 20 quoted lines
> Linus Torvalds [Sun, Sep 18, 2005 at 11:27:45AM -0700]:
> > [git-add/directory fix]
> 
> Nice, first cogito and now git itself. You are pretty fast.
> 
> > [...]
> > Also, I think we should have a default ignore list if we don't find a 
> > .git/info/exclude file. Ignoring "*.o" and ".*" by default would probably 
> > be the right thing to do.
> 
> I do use doc/.warning or similar in some projects files for outputting
> a warning when somebody simply types 'make', so he'll get instructions
> on what to do.
> 
> Other people may even want to include *.o in their tree, because it's
> used by their program for another purpose.
> 
> I do not think that a VCS should ignore anything from itself. If we
> generate a standard .git/info/excludes (or whatever the name of it is)
> and write those standard values in there, this is a different thing.

But .git/info/exclude mostly sucks, you really want these kinds of rules in .gitignore if anywhere. E.g. CVS by default ignores some stuff and it seems as a fine strategy for me, and is working out in the vast majority of cases. You can unignore files by doing '!pattern', so if you want to throw away all the defaults, just specify '!*'.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Nico -telmich- Schottelius
Message 3 of 3 in “Improved "git add"”
  1. Linus TorvaldsSep 18, 2005
  2. Nico -telmich- SchotteliusSep 18, 2005
  3. Petr BaudisSep 18, 2005

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.