From: Jeff King Date: Sat, 07 Feb 2009 11:46:28 GMT Subject: Re: [PATCH 2/2] give exclude mechanism a debug option 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: > Junio C Hamano 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