summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c0ceb2c)
raw | patch | inline | side by side (parent: c0ceb2c)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Thu, 18 Dec 2008 17:11:18 +0000 (18:11 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 18 Dec 2008 17:55:53 +0000 (09:55 -0800) |
Add a test which checks that negated patterns such as "!foo.html" can
override previous patterns such as "*.html". This is documented
behaviour but had not been tested so far.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
override previous patterns such as "*.html". This is documented
behaviour but had not been tested so far.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3001-ls-files-others-exclude.sh | patch | blob | history |
index 8666946b025097d3e93c7853d39265429da81578..85aef12a113fed8164a085a19ce5c794ab96ff6f 100755 (executable)
'
+test_expect_success 'negated exclude matches can override previous ones' '
+
+ git ls-files --others --exclude="a.*" --exclude="!a.1" >output &&
+ grep "^a.1" output
+'
+
test_done