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
6 MIME-Version: 1.0
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.
17 ---
18 dir/sub | 2 ++
19 file0 | 3 +++
20 file2 | 3 ---
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
32 --- a/dir/sub
33 +++ b/dir/sub
34 @@ -1,2 +1,4 @@
35 A
36 B
37 +C
38 +D
39 diff --git a/file0 b/file0
40 index 01e79c3..b414108 100644
41 --- a/file0
42 +++ b/file0
43 @@ -1,3 +1,6 @@
44 1
45 2
46 3
47 +4
48 +5
49 +6
50 diff --git a/file2 b/file2
51 deleted file mode 100644
52 index 01e79c3..0000000
53 --- a/file2
54 +++ /dev/null
55 @@ -1,3 +0,0 @@
56 -1
57 -2
58 -3
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
68 MIME-Version: 1.0
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
77 ---
78 dir/sub | 2 ++
79 file1 | 3 +++
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
91 --- a/dir/sub
92 +++ b/dir/sub
93 @@ -2,3 +2,5 @@ A
94 B
95 C
96 D
97 +E
98 +F
99 diff --git a/file1 b/file1
100 new file mode 100644
101 index 0000000..b1e6722
102 --- /dev/null
103 +++ b/file1
104 @@ -0,0 +1,3 @@
105 +A
106 +B
107 +C
109 --------------g-i-t--v-e-r-s-i-o-n--
112 $