aboutsummaryrefslogtreecommitdiffstats
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-05-31 18:29:28 -0400
committerJunio C Hamano <gitster@pobox.com>2015-06-01 15:53:03 -0700
commit020be85f5153e2a3a231e40fe81af9e4a1c01cd4 (patch)
treeb4f7cfe5f50366f870261a772f55c31e32b81074 /git-send-email.perl
parent09f1157bbf5daa8a4fd8de1d25edbb8961d44521 (diff)
downloadgit-020be85f5153e2a3a231e40fe81af9e4a1c01cd4.tar.gz
send-email: simplify sendmail aliases comment and blank line recognizer
Replace unnecessarily complex regular expression for recognizing comment and blank lines in sendmail aliases with idiomatic expressions which can be easily understood at a glance. 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.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 76bb499fbb..e777bd3a60 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -505,7 +505,7 @@ sub parse_sendmail_alias {
sub parse_sendmail_aliases {
my $fh = shift;
while (<$fh>) {
- if (/^\s*(?:#.*)?$/) { next; }
+ next if /^\s*$/ || /^\s*#/;
parse_sendmail_alias($_);
}
}