Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rebase -i: teach --onto A...B syntax
[gitweb.git]
/
t
/
t3001-ls-files-others-exclude.sh
diff --git
a/t/t3001-ls-files-others-exclude.sh
b/t/t3001-ls-files-others-exclude.sh
index 6a1711374579082000e95e39e4f6c0d572d11cd4..c65bca838881938e2f924cfe62b2c303dbd5b1cd 100755
(executable)
--- a/
t/t3001-ls-files-others-exclude.sh
+++ b/
t/t3001-ls-files-others-exclude.sh
@@
-147,4
+147,10
@@
test_expect_success 'trailing slash in exclude forces directory match (2)' '
'
+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