summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-12-06 11:08:03 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-06 11:09:41 -0800
commite2bcd4f77968e075c2987da020ba7a843007a54f (patch)
tree05619481a0da9f803f4010f1077aae7e3be37bb9 /t
parentMerge branch 'rr/for-each-ref-decoration' (diff)
parentdiff: restrict pathspec limitations to diff b/f case only (diff)
downloadtgif-e2bcd4f77968e075c2987da020ba7a843007a54f.tar.xz
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')
-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 8d4a7fcb91..a7c7ff5f49 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