X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4010-diff-pathspec.sh;h=af5134b70c6b4898aa652907d58191d45aa30ac4;hb=50c94032844bb184cdeff7779be3b6a23e04d312;hp=fbc8cd8f05f4debeb30b935c1b1db86e94e49f0e;hpb=57c081046c2885393858f31fc0e47d9c7545d051;p=git.git diff --git a/t/t4010-diff-pathspec.sh b/t/t4010-diff-pathspec.sh index fbc8cd8f0..af5134b70 100755 --- a/t/t4010-diff-pathspec.sh +++ b/t/t4010-diff-pathspec.sh @@ -47,6 +47,14 @@ test_expect_success \ 'git diff-index --cached $tree -- path1/ >current && compare_diff_raw current expected' +cat >expected <<\EOF +:100644 100644 766498d93a4b06057a8e49d23f4068f1170ff38f 0a41e115ab61be0328a19b29f18cdcb49338d516 M path1/file1 +EOF +test_expect_success \ + '"*file1" should show path1/file1' \ + 'git diff-index --cached $tree -- "*file1" >current && + compare_diff_raw current expected' + cat >expected <<\EOF :100644 100644 766498d93a4b06057a8e49d23f4068f1170ff38f 0a41e115ab61be0328a19b29f18cdcb49338d516 M file0 EOF