aboutsummaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorPieter de Bie <pdebie@ai.rug.nl>2008-06-07 15:34:36 +0200
committerJunio C Hamano <gitster@pobox.com>2008-06-08 13:46:38 -0700
commitd1eb35b653ddc1bb3fffde1729a7f10342525049 (patch)
tree06cb0c6105641e5c1faf3e7f864fd9d644faea89 /git-send-email.perl
parent9f7820ae574815e6a5c2a8c361a3c7e788d0930c (diff)
downloadgit-d1eb35b653ddc1bb3fffde1729a7f10342525049.tar.gz
git-d1eb35b653ddc1bb3fffde1729a7f10342525049.tar.xz
git-send-email: allow whitespace in addressee list
When interactively supplying addresses to send an email to with send-email, whitespace after the separation comma (as in 'list, jc') wasn't ignored. This meant that resolving of the alias ' jc' would fail, sending an email only to list. With this patch, the optional trailing whitespace is ignored. Signed-off-by: Pieter de Bie <pdebie@ai.rug.nl> 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 ec69c237f..0b04ba32f 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -442,7 +442,7 @@ if (!@to) {
}
my $to = $_;
- push @to, split /,/, $to;
+ push @to, split /,\s*/, $to;
$prompting++;
}