1 $ git format-patch --attach --stdout --suffix=.diff 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
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
18 3 files changed, 9 insertions(+), 0 deletions(-)
19 create mode 100644 file3
22 --------------g-i-t--v-e-r-s-i-o-n
23 Content-Type: text/x-patch; name="0001-Side.diff"
24 Content-Transfer-Encoding: 8bit
25 Content-Disposition: attachment; filename="0001-Side.diff"
27 diff --git a/dir/sub b/dir/sub
28 index 35d242b..7289e35 100644
36 diff --git a/file0 b/file0
37 index 01e79c3..f4615da 100644
47 diff --git a/file3 b/file3
49 index 0000000..7289e35
58 --------------g-i-t--v-e-r-s-i-o-n--