From: Petr Baudis Date: Sun, 18 Sep 2005 22:17:02 GMT Subject: Re: Improved "git add" 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 told me that... > 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