From: Karl Hasselström Date: Sun, 10 Aug 2008 16:13:04 +0000 (+0200) Subject: Add test for diff-tree --stdin with two trees X-Git-Tag: v1.6.1-rc1~330^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5bf707cde14f60b7a066bdab5dbdefaec1a1d0a9;p=git.git Add test for diff-tree --stdin with two trees Signed-off-by: Karl Hasselström Signed-off-by: Junio C Hamano --- diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh index a4cfde6b2..27743c4c5 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 &&