1 $ git format-patch --attach --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 Content-Type: multipart/mixed;
8 boundary="------------g-i-t--v-e-r-s-i-o-n"
10 This is a multi-part message in MIME format.
11 --------------g-i-t--v-e-r-s-i-o-n
12 Content-Type: text/plain; charset=UTF-8; format=fixed
13 Content-Transfer-Encoding: 8bit
16 This is the second commit.
21 3 files changed, 5 insertions(+), 3 deletions(-)
22 delete mode 100644 file2
23 --------------g-i-t--v-e-r-s-i-o-n
24 Content-Type: text/x-patch;
25 name="1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44.diff"
26 Content-Transfer-Encoding: 8bit
27 Content-Disposition: inline;
28 filename="1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44.diff"
30 diff --git a/dir/sub b/dir/sub
31 index 35d242b..8422d40 100644
39 diff --git a/file0 b/file0
40 index 01e79c3..b414108 100644
50 diff --git a/file2 b/file2
51 deleted file mode 100644
52 index 01e79c3..0000000
60 --------------g-i-t--v-e-r-s-i-o-n--
64 From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001
65 From: A U Thor <author@example.com>
66 Date: Mon, 26 Jun 2006 00:02:00 +0000
67 Subject: [PATCH] Third
69 Content-Type: multipart/mixed;
70 boundary="------------g-i-t--v-e-r-s-i-o-n"
72 This is a multi-part message in MIME format.
73 --------------g-i-t--v-e-r-s-i-o-n
74 Content-Type: text/plain; charset=UTF-8; format=fixed
75 Content-Transfer-Encoding: 8bit
80 2 files changed, 5 insertions(+), 0 deletions(-)
81 create mode 100644 file1
82 --------------g-i-t--v-e-r-s-i-o-n
83 Content-Type: text/x-patch;
84 name="9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0.diff"
85 Content-Transfer-Encoding: 8bit
86 Content-Disposition: inline;
87 filename="9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0.diff"
89 diff --git a/dir/sub b/dir/sub
90 index 8422d40..cead32e 100644
99 diff --git a/file1 b/file1
101 index 0000000..b1e6722
109 --------------g-i-t--v-e-r-s-i-o-n--
113 From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001
114 From: A U Thor <author@example.com>
115 Date: Mon, 26 Jun 2006 00:03:00 +0000
116 Subject: [PATCH] Side
118 Content-Type: multipart/mixed;
119 boundary="------------g-i-t--v-e-r-s-i-o-n"
121 This is a multi-part message in MIME format.
122 --------------g-i-t--v-e-r-s-i-o-n
123 Content-Type: text/plain; charset=UTF-8; format=fixed
124 Content-Transfer-Encoding: 8bit
130 3 files changed, 9 insertions(+), 0 deletions(-)
131 create mode 100644 file3
132 --------------g-i-t--v-e-r-s-i-o-n
133 Content-Type: text/x-patch;
134 name="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
135 Content-Transfer-Encoding: 8bit
136 Content-Disposition: inline;
137 filename="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
139 diff --git a/dir/sub b/dir/sub
140 index 35d242b..7289e35 100644
148 diff --git a/file0 b/file0
149 index 01e79c3..f4615da 100644
159 diff --git a/file3 b/file3
161 index 0000000..7289e35
170 --------------g-i-t--v-e-r-s-i-o-n--