Re: [PATCH 2/2] give exclude mechanism a debug option
- From
Jeff King <peff@peff.net>
- Date
- Feb 7, 2009, 11:46 UTC
- Message-ID
- <20090207114628.GC18079@coredump.intra.peff.net>
- In-Reply-To
- <7vhc36zo96.fsf@gitster.siamese.dyndns.org>
On Fri, Feb 06, 2009 at 11:42:45PM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > > >> 1. Doing it as a debug environment variable is hack-ish. > >> A nicer interface would be a .gitignore equivalent of > >> "git check-attr". > > > > Correct. > > I suspect that ls-files would be the good match for it. Wasn't the > exclude mechanism originally done for that command to begin with?
I think you are envisioning something like "which files are excluded, and what patterns matched them?" which ls-files is perhaps a good fit for. I was imagining something more like "which patterns are affecting this particular path?" which you could feed the output of a failed "git add" to.
-Peff