t4013: test diff-tree's --stdin commit formatting

Once upon a time, git-log was just "rev-list | diff-tree", and we did not bother to test it separately. These days git-log is implemented internally, but we want to make sure that the rev-list to diff-tree pipeline continues to function. Let's add a basic sanity test. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 28, 2014 at 14:01 UTC d299e9e550c1bf8640907fdba1f03cc585ee71df
1 file changed +10
t/t4013-diff-various.sh
+10
@@ -324,4 +324,14 @@ test_expect_success 'diff --cached -- file on unborn branch' '
324 test_cmp "$TEST_DIRECTORY/t4013/diff.diff_--cached_--_file0" result
325 '
326
327 +test_expect_success 'diff-tree --stdin with log formatting' '
328 + cat >expect <<-\EOF &&
329 + Side
330 + Third
331 + Second
332 + EOF
333 + git rev-list master | git diff-tree --stdin --format=%s -s >actual &&
334 + test_cmp expect actual
335 +'
336 +
337 test_done