summaryrefslogtreecommitdiff
path: root/t/t6131-pathspec-icase.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-06 19:08:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-12-06 19:09:41 (GMT)
commite2bcd4f77968e075c2987da020ba7a843007a54f (patch)
tree05619481a0da9f803f4010f1077aae7e3be37bb9 /t/t6131-pathspec-icase.sh
parentcb6bd5722f430b225b894920fd80975ffa1d0bb5 (diff)
parent887c6c18ba84da8d722b1528fe8cdde65d9f9860 (diff)
downloadgit-e2bcd4f77968e075c2987da020ba7a843007a54f.zip
git-e2bcd4f77968e075c2987da020ba7a843007a54f.tar.gz
git-e2bcd4f77968e075c2987da020ba7a843007a54f.tar.bz2
Merge branch 'nd/magic-pathspec'
"git diff -- ':(icase)makefile'" were rejected unnecessarily. This needs to be merged to 'maint' later. * nd/magic-pathspec: diff: restrict pathspec limitations to diff b/f case only
Diffstat (limited to 't/t6131-pathspec-icase.sh')
-rwxr-xr-xt/t6131-pathspec-icase.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t6131-pathspec-icase.sh b/t/t6131-pathspec-icase.sh
index 8d4a7fc..a7c7ff5 100755
--- a/t/t6131-pathspec-icase.sh
+++ b/t/t6131-pathspec-icase.sh
@@ -100,4 +100,10 @@ test_expect_success 'match_pathspec_depth matches :(icase)bar with empty prefix'
test_cmp expect actual
'
+test_expect_success '"git diff" can take magic :(icase) pathspec' '
+ echo FOO/BAR >expect &&
+ git diff --name-only HEAD^ HEAD -- ":(icase)foo/bar" >actual &&
+ test_cmp expect actual
+'
+
test_done