From: Junio C Hamano Date: Fri, 08 Jul 2011 18:01:23 GMT Subject: Re: [PATCH] test overlapping ignore patterns Message-ID: <7vk4bsfy8c.fsf@alter.siamese.dyndns.org> In-Reply-To: <1310062372893-6559395.post@n2.nabble.com> Stephen Haberman writes: > +test_expect_success 'negated exclude matches can override previous ones 2' > ' > + > + git ls-files --others --exclude="*" --exclude="!*.1" >output && > + grep "^one/two/a.1" output > +' Does this has anything to do with "negated overrides"? Doesn't the first "*" tells us to not to look at the contents of one/ directory at all, so we that we do not have to waste time descending into it? We wouldn't even know what pathnames are underneath it, so "!*.1" would not have any effect inside one/ at all, I think.