1 $ git format-patch --stdout initial..master
2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001
3 From: A U Thor <author@example.com>
4 Date: Mon, 26 Jun 2006 00:01:00 +0000
5 Subject: [PATCH] Second
7 This is the second commit.
8 ---
9 dir/sub | 2 ++
10 file0 | 3 +++
11 file2 | 3 ---
12 3 files changed, 5 insertions(+), 3 deletions(-)
14 diff --git a/dir/sub b/dir/sub
15 index 35d242b..8422d40 100644
16 --- a/dir/sub
17 +++ b/dir/sub
18 @@ -1,2 +1,4 @@
19 A
20 B
21 +C
22 +D
23 diff --git a/file0 b/file0
24 index 01e79c3..b414108 100644
25 --- a/file0
26 +++ b/file0
27 @@ -1,3 +1,6 @@
28 1
29 2
30 3
31 +4
32 +5
33 +6
34 diff --git a/file2 b/file2
35 deleted file mode 100644
36 index 01e79c3..0000000
37 --- a/file2
38 +++ /dev/null
39 @@ -1,3 +0,0 @@
40 -1
41 -2
42 -3
43 --
44 g-i-t--v-e-r-s-i-o-n
47 From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001
48 From: A U Thor <author@example.com>
49 Date: Mon, 26 Jun 2006 00:02:00 +0000
50 Subject: [PATCH] Third
52 ---
53 dir/sub | 2 ++
54 file1 | 3 +++
55 2 files changed, 5 insertions(+), 0 deletions(-)
57 diff --git a/dir/sub b/dir/sub
58 index 8422d40..cead32e 100644
59 --- a/dir/sub
60 +++ b/dir/sub
61 @@ -2,3 +2,5 @@ A
62 B
63 C
64 D
65 +E
66 +F
67 diff --git a/file1 b/file1
68 new file mode 100644
69 index 0000000..b1e6722
70 --- /dev/null
71 +++ b/file1
72 @@ -0,0 +1,3 @@
73 +A
74 +B
75 +C
76 --
77 g-i-t--v-e-r-s-i-o-n
80 From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001
81 From: A U Thor <author@example.com>
82 Date: Mon, 26 Jun 2006 00:03:00 +0000
83 Subject: [PATCH] Side
85 ---
86 dir/sub | 2 ++
87 file0 | 3 +++
88 file3 | 4 ++++
89 3 files changed, 9 insertions(+), 0 deletions(-)
91 diff --git a/dir/sub b/dir/sub
92 index 35d242b..7289e35 100644
93 --- a/dir/sub
94 +++ b/dir/sub
95 @@ -1,2 +1,4 @@
96 A
97 B
98 +1
99 +2
100 diff --git a/file0 b/file0
101 index 01e79c3..f4615da 100644
102 --- a/file0
103 +++ b/file0
104 @@ -1,3 +1,6 @@
105 1
106 2
107 3
108 +A
109 +B
110 +C
111 diff --git a/file3 b/file3
112 new file mode 100644
113 index 0000000..7289e35
114 --- /dev/null
115 +++ b/file3
116 @@ -0,0 +1,4 @@
117 +A
118 +B
119 +1
120 +2
121 --
122 g-i-t--v-e-r-s-i-o-n
124 $