aboutsummaryrefslogtreecommitdiff
path: root/t/t4013-diff-various.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-28 11:31:46 -0700
committerJunio C Hamano <gitster@pobox.com>2014-07-28 11:31:46 -0700
commit583b61c1af1bac12d6b48b2583ad508b5ab9964c (patch)
tree0c5ca59da75fdc0050c277b5cb544a8fe64b91b9 /t/t4013-diff-various.sh
parentad524f834a9acaaaceeb846d00ea609f79333a3d (diff)
parentd299e9e550c1bf8640907fdba1f03cc585ee71df (diff)
downloadgit-583b61c1af1bac12d6b48b2583ad508b5ab9964c.tar.gz
git-583b61c1af1bac12d6b48b2583ad508b5ab9964c.tar.xz
Merge branch 'maint'
* maint: t4013: test diff-tree's --stdin commit formatting diff-tree: avoid lookup_unknown_object object_as_type: set commit index alloc: factor out commit index add object_as_type helper for casting objects parse_object_buffer: do not set object type move setting of object->type to alloc_* functions alloc: write out allocator definitions alloc.c: remove the alloc_raw_commit_node() function
Diffstat (limited to 't/t4013-diff-various.sh')
-rwxr-xr-xt/t4013-diff-various.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t4013-diff-various.sh b/t/t4013-diff-various.sh
index 805b055c8..6ec607211 100755
--- a/t/t4013-diff-various.sh
+++ b/t/t4013-diff-various.sh
@@ -324,4 +324,14 @@ test_expect_success 'diff --cached -- file on unborn branch' '
test_cmp "$TEST_DIRECTORY/t4013/diff.diff_--cached_--_file0" result
'
+test_expect_success 'diff-tree --stdin with log formatting' '
+ cat >expect <<-\EOF &&
+ Side
+ Third
+ Second
+ EOF
+ git rev-list master | git diff-tree --stdin --format=%s -s >actual &&
+ test_cmp expect actual
+'
+
test_done