Code

format-patch: Generate a newline between the subject header and the message body
authorRobert Shearman <rob@codeweavers.com>
Thu, 13 Jul 2006 22:17:22 +0000 (23:17 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 14 Jul 2006 04:40:43 +0000 (21:40 -0700)
commit19b3bd3e2d260323c5e727212a6dcd7fc0f7aa07
treee9a765ab286241bac3997a472bc964f9b043505a
parenta40d384caca008c0334a35e9ac298f2eeb5decd2
format-patch: Generate a newline between the subject header and the message body

format-patch previously didn't generate a newline after a subject. This
caused the diffstat to not be displayed in messages with only one line
for the commit message.
This patch fixes this by adding a newline after the headers if a body
hasn't been added.
Signed-off-by: Robert Shearman <rob@codeweavers.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.c