X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3001-ls-files-others-exclude.sh;h=c65bca838881938e2f924cfe62b2c303dbd5b1cd;hb=a0c0447b8eda07529eec2ae8fbc6bf68e1ff2d67;hp=6a1711374579082000e95e39e4f6c0d572d11cd4;hpb=fa711bc1983efca058ef6af19ffa808690b21d8c;p=git.git diff --git a/t/t3001-ls-files-others-exclude.sh b/t/t3001-ls-files-others-exclude.sh index 6a1711374..c65bca838 100755 --- 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