[PATCH] git-send-email: allow whitespace in addressee list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---

This has been bothering me for a while now :)

 git-send-email.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-send-email.perl b/git-send-email.perl
index a598fdc..e53350a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -441,7 +441,7 @@ if (!@to) {
 	}
 
 	my $to = $_;
-	push @to, split /,/, $to;
+	push @to, split /,\s*/, $to;
 	$prompting++;
 }
 
-- 
1.5.6.rc0.165.ge08d6b.dirty


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux