summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd602bf)
raw | patch | inline | side by side (parent: dd602bf)
author | Michael Witten <mfwitten@gmail.com> | |
Mon, 13 Apr 2009 18:23:50 +0000 (13:23 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 14 Apr 2009 08:55:58 +0000 (01:55 -0700) |
This should make things a little more robust in terms of user input;
before, even the program got it wrong by outputting a line with only
"GIT:", which was left in place as a header, because there would be
no following space character.
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
before, even the program got it wrong by outputting a line with only
"GIT:", which was left in place as a header, because there would be
no following space character.
Signed-off-by: Michael Witten <mfwitten@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 172b53c2d5b8ccad6a1bee592bccbe27d8f3127c..7526ade761aa6301392bd82bb2d4262130b62597 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
print C <<EOT;
From $tpl_sender # This line is ignored.
-GIT: Lines beginning in "GIT: " will be removed.
+GIT: Lines beginning in "GIT:" will be removed.
GIT: Consider including an overall diffstat or table of contents
GIT: for the patch you are writing.
GIT:
my $in_body = 0;
my $summary_empty = 1;
while(<C>) {
- next if m/^GIT: /;
+ next if m/^GIT:/;
if ($in_body) {
$summary_empty = 0 unless (/^\n$/);
} elsif (/^\n$/) {