@matheusbsbs / matheus-bagliano / commits / d1eb35b653
Fork 0

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>

Pieter de Bie committed Jun 7, 2008 at 15:34 UTC d1eb35b653ddc1bb3fffde1729a7f10342525049
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -442,7 +442,7 @@ if (!@to) {
442 }
443
444 my $to = $_;
445 - push @to, split /,/, $to;
445 + push @to, split /,\s*/, $to;
446 $prompting++;
447 }
448