From: Petr Baudis Date: Sun, 08 May 2005 23:42:27 GMT Subject: Re: [PATCH] Add exclude file support to cg-status Message-ID: <20050508234227.GQ9495@pasky.ji.cz> In-Reply-To: <7vfywx2t77.fsf@assigned-by-dhcp.cox.net> Dear diary, on Mon, May 09, 2005 at 01:28:44AM CEST, I got a letter where Junio C Hamano told me that... > >>>>> "PB" == Petr Baudis writes: > > PB> ... since I *don't* think you want to share this. The very > PB> fact it is in the .git/ directory implies here that these > PB> are your local exclude patterns which are likely > PB> temporary... > > Is it really the case? I recall that Linux kernel started > shipping with the standard dontdiff file for everybody's use > some time ago, after enough people wanted it included in the > upstream release. Maybe you would want to read from both? Of course. You should combine them both, the .git/ one having the ultimate precedence (if we support the CVS-like ! stuff too). That is, in CVS the version-controlled files are per-directory, which can be very nice too; things are getting harder now, though, since we should have some per-project ignore file too. > PB> The fact that we have no support for version-tracked exclude file can't > PB> stop me! ;-) > > What darcs folks do is that they have a per-tree configuration > (kept in ./_darcs, which is similar to our ./.git) that says > which file is the exclude list, and by setting configuration > item to point at a file which _is_ version controlled they can > share the exclude file. That is certainly a good idea (at least for kernel, where you probably just want to give it dontdiff), but we need a sensible default. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor