1 $ git format-patch --attach --stdout initial..side
2 From c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a Mon Sep 17 00:00:00 2001
3 From: A U Thor <author@example.com>
4 Date: Mon, 26 Jun 2006 00:03:00 +0000
5 Subject: [PATCH] Side
6 MIME-Version: 1.0
7 Content-Type: multipart/mixed; boundary="------------g-i-t--v-e-r-s-i-o-n"
9 This is a multi-part message in MIME format.
10 --------------g-i-t--v-e-r-s-i-o-n
11 Content-Type: text/plain; charset=UTF-8; format=fixed
12 Content-Transfer-Encoding: 8bit
14 ---
15 dir/sub | 2 ++
16 file0 | 3 +++
17 file3 | 4 ++++
18 3 files changed, 9 insertions(+), 0 deletions(-)
19 create mode 100644 file3
20 --------------g-i-t--v-e-r-s-i-o-n
21 Content-Type: text/x-patch; name="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
22 Content-Transfer-Encoding: 8bit
23 Content-Disposition: attachment; filename="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
25 diff --git a/dir/sub b/dir/sub
26 index 35d242b..7289e35 100644
27 --- a/dir/sub
28 +++ b/dir/sub
29 @@ -1,2 +1,4 @@
30 A
31 B
32 +1
33 +2
34 diff --git a/file0 b/file0
35 index 01e79c3..f4615da 100644
36 --- a/file0
37 +++ b/file0
38 @@ -1,3 +1,6 @@
39 1
40 2
41 3
42 +A
43 +B
44 +C
45 diff --git a/file3 b/file3
46 new file mode 100644
47 index 0000000..7289e35
48 --- /dev/null
49 +++ b/file3
50 @@ -0,0 +1,4 @@
51 +A
52 +B
53 +1
54 +2
56 --------------g-i-t--v-e-r-s-i-o-n--
59 $