summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-05-31 18:29:25 -0400
committerJunio C Hamano <gitster@pobox.com>2015-06-01 15:52:42 -0700
commit2cdaabb6f9294a6ee618abcd1d60a21569a1fd51 (patch)
tree238e7ef6678ef40863c98726641304f291ac7e8a /git-send-email.perl
parent818a2d7722de03a16177e2323fa7b77624722e2a (diff)
downloadgit-2cdaabb6f9294a6ee618abcd1d60a21569a1fd51.tar.gz
send-email: drop noise comments which merely repeat what code says
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl5
1 files changed, 0 insertions, 5 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 819f87e8df..0b1868200b 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -517,26 +517,21 @@ my %parse_alias = (
} },
sendmail => sub { my $fh = shift; while (<$fh>) {
- # ignore blank lines and comment lines
if (/^\s*(?:#.*)?$/) { }
- # warn on lines that contain quotes
elsif (/"/) {
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
}
- # warn on lines that continue
elsif (/^\s|\\$/) {
print STDERR "warning: sendmail continuation line is not supported: $_\n";
}
- # recognize lines that look like an alias
elsif (/^(\S+?)\s*:\s*(.+)$/) {
my ($alias, $addr) = ($1, $2);
$aliases{$alias} = [ split_addrs($addr) ];
}
- # warn on lines that are not recognized
else {
print STDERR "warning: sendmail line is not recognized: $_\n";
}}},