summaryrefslogtreecommitdiff
path: root/t/t3102-ls-tree-wildcards.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-12-01 11:48:34 -0800
committerJunio C Hamano <gitster@pobox.com>2014-12-01 11:49:53 -0800
commit4be4f71f55c5677a2671894cd218e311862a98ad (patch)
tree1a1324fc9d431199748ed6769e79935e8dab3f1d /t/t3102-ls-tree-wildcards.sh
parent5c6cb9888df9d21ddbb5c3478d511edcdf3cda7c (diff)
downloadgit-4be4f71f55c5677a2671894cd218e311862a98ad.tar.gz
t3102: document that ls-tree does not yet support negated pathspec
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3102-ls-tree-wildcards.sh')
-rwxr-xr-xt/t3102-ls-tree-wildcards.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t3102-ls-tree-wildcards.sh b/t/t3102-ls-tree-wildcards.sh
index 83fca8df8b..ef724200a6 100755
--- a/t/t3102-ls-tree-wildcards.sh
+++ b/t/t3102-ls-tree-wildcards.sh
@@ -27,4 +27,10 @@ EOF
test_cmp expected actual
'
+test_expect_failure 'ls-tree does not yet support negated pathspec' '
+ git ls-files ":(exclude)a" "a*" >expect &&
+ git ls-tree --name-only -r HEAD ":(exclude)a" "a*" >actual &&
+ test_cmp expect actual
+'
+
test_done