From: Clemens Buchacher Date: Sat, 05 Mar 2011 08:47:33 GMT Subject: Re: Behavior of git ls-files Message-ID: <20110305084733.GA3039@toss> In-Reply-To: <691824945.20110304183831@stzedn.de> On Fri, Mar 04, 2011 at 06:38:31PM +0100, Steffen Jaeckel wrote: > > Is the behavior of git ls-files correct or not? Indeed, the behavior is not correct. It does not find any files which are excluded only due to a directory exclude. In the cases without -i we do not even have to look at files under an ignored directory. So the matching rules are not applied correctly in this case. We have the same problem with git ls-files -i -o, unless you also specify --directory (in which case, again, we do not need to look at files under the ignored directory). Clemens