X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4002-diff-basic.sh;h=cc3681f16118ca70ae9f65a27ccd6f354a6deee1;hb=0eb5ebc1d862737ea2b313d0d77d120b3d114099;hp=56bd3c2be1d7a2ae21e419bb5f6184ba0bf83ff9;hpb=99b52f2e495a2ccdb4ebf2a540a8bc81fa2bcf3d;p=git.git diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh index 56bd3c2be..cc3681f16 100755 --- a/t/t4002-diff-basic.sh +++ b/t/t4002-diff-basic.sh @@ -168,6 +168,20 @@ test_expect_success \ 'git diff-tree -r $tree_A $tree_B >.test-a && cmp -s .test-a .test-recursive-AB' +test_expect_success \ + 'diff-tree --stdin of known trees.' \ + 'echo $tree_A $tree_B | git diff-tree --stdin > .test-a && + echo $tree_A $tree_B > .test-plain-ABx && + cat .test-plain-AB >> .test-plain-ABx && + cmp -s .test-a .test-plain-ABx' + +test_expect_success \ + 'diff-tree --stdin of known trees.' \ + 'echo $tree_A $tree_B | git diff-tree -r --stdin > .test-a && + echo $tree_A $tree_B > .test-recursive-ABx && + cat .test-recursive-AB >> .test-recursive-ABx && + cmp -s .test-a .test-recursive-ABx' + test_expect_success \ 'diff-cache O with A in cache' \ 'git read-tree $tree_A &&