blame: correctly handle files regardless of autocrlf
[gitweb.git] / t / t6131-pathspec-icase.sh
index 8d4a7fcb916f9669a9c9ef5b3668f881aff29217..a7c7ff5f4938c1fa7439e7c5a45321572bfc55fe 100755 (executable)
@@ -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