summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6baf048)
raw | patch | inline | side by side (parent: 6baf048)
author | Alexandre Julliard <julliard@winehq.org> | |
Mon, 27 Feb 2006 13:09:56 +0000 (14:09 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 27 Feb 2006 19:01:47 +0000 (11:01 -0800) |
If the second line of the commit message isn't empty, git-format-patch
needs to add an empty line in order to generate a properly formatted
mail. Otherwise git-rebase drops the rest of the commit message.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
needs to add an empty line in order to generate a properly formatted
mail. Otherwise git-rebase drops the rest of the commit message.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-format-patch.sh | patch | blob | history |
diff --git a/git-format-patch.sh b/git-format-patch.sh
index eb75de46019284df4e9e2862736d232c230a5596..2bd26395ecc687e01c7915b5ba13e9576749143b 100755 (executable)
--- a/git-format-patch.sh
+++ b/git-format-patch.sh
process_one () {
perl -w -e '
my ($keep_subject, $num, $signoff, $commsg) = @ARGV;
-my ($signoff_pattern, $done_header, $done_subject, $signoff_seen,
+my ($signoff_pattern, $done_header, $done_subject, $done_separator, $signoff_seen,
$last_was_signoff);
if ($signoff) {
$done_subject = 1;
next;
}
+ unless ($done_separator) {
+ print "\n";
+ $done_separator = 1;
+ next if (/^$/);
+ }
$last_was_signoff = 0;
if (/Signed-off-by:/i) {