3 test_description='test case insensitive pathspec limiting'
6 test_expect_success 'create commits with glob characters' '
11 test_commit foo/bar foo/bar &&
12 test_commit foo/bAr foo/bAr &&
13 test_commit foo/BAR foo/BAR &&
15 test_commit fOo/bar fOo/bar &&
16 test_commit fOo/bAr fOo/bAr &&
17 test_commit fOo/BAR fOo/BAR &&
19 test_commit FOO/bar FOO/bar &&
20 test_commit FOO/bAr FOO/bAr &&
21 test_commit FOO/BAR FOO/BAR
24 test_expect_success 'tree_entry_interesting matches bar' '
26 git log --format=%s -- "bar" >actual &&
27 test_cmp expect actual
30 test_expect_success 'tree_entry_interesting matches :(icase)bar' '
36 git log --format=%s -- ":(icase)bar" >actual &&
37 test_cmp expect actual
40 test_expect_success 'tree_entry_interesting matches :(icase)bar with prefix' '
46 ( cd fOo && git log --format=%s -- ":(icase)bar" ) >actual &&
47 test_cmp expect actual
50 test_expect_success 'tree_entry_interesting matches :(icase)bar with empty prefix' '
62 ( cd fOo && git log --format=%s -- ":(icase)../foo/bar" ) >actual &&
63 test_cmp expect actual
66 test_expect_success 'match_pathspec_depth matches :(icase)bar' '
72 git ls-files ":(icase)bar" >actual &&
73 test_cmp expect actual
76 test_expect_success 'match_pathspec_depth matches :(icase)bar with prefix' '
82 ( cd fOo && git ls-files --full-name ":(icase)bar" ) >actual &&
83 test_cmp expect actual
86 test_expect_success 'match_pathspec_depth matches :(icase)bar with empty prefix' '
93 ( cd fOo && git ls-files --full-name ":(icase)bar" ../bar ) >actual &&
94 test_cmp expect actual