Skip to content

Commit d1eb35b

Browse files
pietergitster
authored andcommitted
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>
1 parent 9f7820a commit d1eb35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ sub read_config {
442442
}
443443

444444
my $to = $_;
445-
push @to, split /,/, $to;
445+
push @to, split /,\s*/, $to;
446446
$prompting++;
447447
}
448448

0 commit comments

Comments
 (0)