summaryrefslogtreecommitdiff
path: root/git-format-patch.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-19 21:55:12 -0800
committerJunio C Hamano <junkio@cox.net>2005-12-19 21:55:12 -0800
commita5c21d6eb7e7ce164666d55e5911c271664ddfe7 (patch)
tree4f8291d39e7cdac43570cf2d8b5d112502f19a29 /git-format-patch.sh
parent913419fcc648dd43d7f7afdd94fa25aee4f9798a (diff)
downloadgit-a5c21d6eb7e7ce164666d55e5911c271664ddfe7.tar.gz
format-patch: make sure header and body are separated.
Since log message in a commit object is defined to be binary blob, it could be something without an empty line between the title line and the body text. Be careful to format such into a form suitable for e-mail submission. There must be an empty line between the headers and the body. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-format-patch.sh')
-rwxr-xr-xgit-format-patch.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-format-patch.sh b/git-format-patch.sh
index 01508e3b04..daa3caea77 100755
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
@@ -210,6 +210,8 @@ Date: '"$ad"
}
mailScript="$mailScript"'
+ a\
+
: body
p
n