archive: handle commits with an empty tree
[git/jnareb-git.git] / t / t4013 / diff.diff-tree_--pretty_--root_--patch-with-raw_initial
bloba3203bd19bd74f1308ca75396fd9a3cfa2064ac8
1 $ git diff-tree --pretty --root --patch-with-raw initial
2 commit 444ac553ac7612cc88969031b02b3767fb8a353a
3 Author: A U Thor <author@example.com>
4 Date:   Mon Jun 26 00:00:00 2006 +0000
6     Initial
8 :000000 100644 0000000000000000000000000000000000000000 35d242ba79ae89ac695e26b3d4c27a8e6f028f9e A      dir/sub
9 :000000 100644 0000000000000000000000000000000000000000 01e79c32a8c99c557f0757da7cb6d65b3414466d A      file0
10 :000000 100644 0000000000000000000000000000000000000000 01e79c32a8c99c557f0757da7cb6d65b3414466d A      file2
12 diff --git a/dir/sub b/dir/sub
13 new file mode 100644
14 index 0000000..35d242b
15 --- /dev/null
16 +++ b/dir/sub
17 @@ -0,0 +1,2 @@
20 diff --git a/file0 b/file0
21 new file mode 100644
22 index 0000000..01e79c3
23 --- /dev/null
24 +++ b/file0
25 @@ -0,0 +1,3 @@
29 diff --git a/file2 b/file2
30 new file mode 100644
31 index 0000000..01e79c3
32 --- /dev/null
33 +++ b/file2
34 @@ -0,0 +1,3 @@