From: Junio C Hamano Date: Tue, 20 Dec 2005 05:55:12 +0000 (-0800) Subject: format-patch: make sure header and body are separated. X-Git-Tag: v1.0.0^2~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a5c21d6eb7e7ce164666d55e5911c271664ddfe7;p=git-core%2Fgit.git 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 --- diff --git a/git-format-patch.sh b/git-format-patch.sh index 01508e3b0..daa3caea7 100755 --- a/git-format-patch.sh +++ b/git-format-patch.sh @@ -210,6 +210,8 @@ Date: '"$ad" } mailScript="$mailScript"' + a\ + : body p n