Re: [PATCH] test overlapping ignore patterns
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 8, 2011, 18:01 UTC
- Message-ID
- <7vk4bsfy8c.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1310062372893-6559395.post@n2.nabble.com>
Stephen Haberman <stephen@exigencecorp.com> writes:
Show 6 quoted lines
> +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.