Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2015-06-01 01:29:26 +0300
committerJunio C Hamano <gitster@pobox.com>2015-06-02 01:52:46 +0300
commit22e3b46ff95ac01add2d1e8874708b06c9e7db91 (patch)
treee623b19b6003f7a8c0ac92f885e219794c6bd17d /git-send-email.perl
parent2cdaabb6f9294a6ee618abcd1d60a21569a1fd51 (diff)
send-email: fix style: cuddle 'elsif' and 'else' with closing brace
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.perl17
1 files changed, 5 insertions, 12 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 0b1868200b..1380e6e163 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -517,22 +517,15 @@ my %parse_alias = (
} },
sendmail => sub { my $fh = shift; while (<$fh>) {
- if (/^\s*(?:#.*)?$/) { }
-
- elsif (/"/) {
+ if (/^\s*(?:#.*)?$/) {
+ } elsif (/"/) {
print STDERR "warning: sendmail alias with quotes is not supported: $_\n";
- }
-
- elsif (/^\s|\\$/) {
+ } elsif (/^\s|\\$/) {
print STDERR "warning: sendmail continuation line is not supported: $_\n";
- }
-
- elsif (/^(\S+?)\s*:\s*(.+)$/) {
+ } elsif (/^(\S+?)\s*:\s*(.+)$/) {
my ($alias, $addr) = ($1, $2);
$aliases{$alias} = [ split_addrs($addr) ];
- }
-
- else {
+ } else {
print STDERR "warning: sendmail line is not recognized: $_\n";
}}},