summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 065b070)
raw | patch | inline | side by side (parent: 065b070)
author | Eric W. Biederman <ebiederm@xmission.com> | |
Thu, 21 May 2009 02:45:53 +0000 (19:45 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 21 May 2009 14:08:58 +0000 (07:08 -0700) |
It is legal and not uncommon to use quotes in a .mailrc file so
you can include a persons fullname as well as their email alias.
Handle this by using quotewords instead of split when parsing
.mailrc files.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
you can include a persons fullname as well as their email alias.
Handle this by using quotewords instead of split when parsing
.mailrc files.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index cccbf4517aa46d4d217a1ce25105f7c413301d2d..e3408d513fd5b3f504415021647351c7f9aeab91 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
mailrc => sub { my $fh = shift; while (<$fh>) {
if (/^alias\s+(\S+)\s+(.*)$/) {
# spaces delimit multiple addresses
- $aliases{$1} = [ split(/\s+/, $2) ];
+ $aliases{$1} = [ quotewords('\s+', 0, $2) ];
}}},
pine => sub { my $fh = shift; my $f='\t[^\t]*';
for (my $x = ''; defined($x); $x = $_) {