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;
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
15 ---
16 dir/sub | 2 ++
17 file0 | 3 +++
18 file3 | 4 ++++
19 3 files changed, 9 insertions(+), 0 deletions(-)
20 create mode 100644 file3
21 --------------g-i-t--v-e-r-s-i-o-n
22 Content-Type: text/x-patch;
23 name="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
24 Content-Transfer-Encoding: 8bit
25 Content-Disposition: inline;
26 filename="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
28 diff --git a/dir/sub b/dir/sub
29 index 35d242b..7289e35 100644
30 --- a/dir/sub
31 +++ b/dir/sub
32 @@ -1,2 +1,4 @@
33 A
34 B
35 +1
36 +2
37 diff --git a/file0 b/file0
38 index 01e79c3..f4615da 100644
39 --- a/file0
40 +++ b/file0
41 @@ -1,3 +1,6 @@
42 1
43 2
44 3
45 +A
46 +B
47 +C
48 diff --git a/file3 b/file3
49 new file mode 100644
50 index 0000000..7289e35
51 --- /dev/null
52 +++ b/file3
53 @@ -0,0 +1,4 @@
54 +A
55 +B
56 +1
57 +2
59 --------------g-i-t--v-e-r-s-i-o-n--
62 $