X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t%2Ft4010-diff-pathspec.sh;h=94df7ae53a0ef47c0ef10ca6b3215ffdf38fa399;hb=00f39fc9955c22b6a8a2702b88509647e65291ce;hp=9322298ecc6cb79f0123dea4e329317c5bfbfd11;hpb=6ac92294b30d7c8619cf15b531448f011dbdcdcc;p=~andy%2Fgit diff --git a/t/t4010-diff-pathspec.sh b/t/t4010-diff-pathspec.sh index 9322298ec..94df7ae53 100755 --- a/t/t4010-diff-pathspec.sh +++ b/t/t4010-diff-pathspec.sh @@ -62,4 +62,12 @@ test_expect_success \ 'git diff-index --cached $tree -- file0/ >current && compare_diff_raw current expected' +test_expect_success 'diff-tree pathspec' ' + tree2=$(git write-tree) && + echo "$tree2" && + git diff-tree -r --name-only $tree $tree2 -- pa path1/a >current && + >expected && + test_cmp expected current +' + test_done