summaryrefslogtreecommitdiff
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..side
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2008-07-30 05:49:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-30 06:18:15 (GMT)
commit6b2fbaaffc5ec762eae5d23b58b1dc0a88e2275e (patch)
treec74662decbfde7365c0f7e449458dfa4d5598c0c /t/t4013/diff.format-patch_--inline_--stdout_initial..side
parent8cb070a4cfea48f88ada02a87320c3ca63b934cb (diff)
downloadgit-6b2fbaaffc5ec762eae5d23b58b1dc0a88e2275e.zip
git-6b2fbaaffc5ec762eae5d23b58b1dc0a88e2275e.tar.gz
git-6b2fbaaffc5ec762eae5d23b58b1dc0a88e2275e.tar.bz2
format-patch: Produce better output with --inline or --attach
This patch makes two small changes to improve the output of --inline and --attach. The first is to write a newline preceding the boundary. This is needed because MIME defines the encapsulation boundary as including the preceding CRLF (or in this case, just LF), so we should be writing one. Without this, the last newline in the pre-diff content is consumed instead. The second change is to always write the line termination character (default: newline) even when using --inline or --attach. This is simply to improve the aesthetics of the resulting message. When using --inline an email client should render the resulting message identically to the non-inline version. And when using --attach this adds a blank line preceding the attachment in the email, which is visually attractive. Signed-off-by: Kevin Ballard <kevin@sb.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..side')
-rw-r--r--t/t4013/diff.format-patch_--inline_--stdout_initial..side2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t4013/diff.format-patch_--inline_--stdout_initial..side b/t/t4013/diff.format-patch_--inline_--stdout_initial..side
index 86ae923..e86dce6 100644
--- a/t/t4013/diff.format-patch_--inline_--stdout_initial..side
+++ b/t/t4013/diff.format-patch_--inline_--stdout_initial..side
@@ -17,6 +17,8 @@ Content-Transfer-Encoding: 8bit
file3 | 4 ++++
3 files changed, 9 insertions(+), 0 deletions(-)
create mode 100644 file3
+
+
--------------g-i-t--v-e-r-s-i-o-n
Content-Type: text/x-patch; name="c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a.diff"
Content-Transfer-Encoding: 8bit