Re: [PATCH] Add exclude file support to cg-status
- From
Petr Baudis <pasky@ucw.cz>
- Date
- May 8, 2005, 23:42 UTC
- 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 <junkio@cox.net> told me that...
Show 11 quoted lines
> >>>>> "PB" == Petr Baudis <pasky@ucw.cz> 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.
Show 8 quoted lines
> 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