From d1eb35b653ddc1bb3fffde1729a7f10342525049 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sat, 7 Jun 2008 15:34:36 +0200 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- git-send-email.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- 2.30.2