git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d5c7d69
)
send-email: use (?:) instead of () if no match variables are needed
author
Ævar Arnfjörð Bjarmason
<redacted>
Thu, 30 Sep 2010 13:43:04 +0000
(13:43 +0000)
committer
Junio C Hamano
<redacted>
Thu, 30 Sep 2010 19:20:33 +0000
(12:20 -0700)
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Reviewed-by: Jeff King <redacted>
>
Signed-off-by: Junio C Hamano <redacted>
git-send-email.perl
patch
|
blob
|
history
diff --git
a/git-send-email.perl
b/git-send-email.perl
index c012b95560bcc5335c5476c11880fefe9ef8fc66..5a0c4a8aefe8c1d5ea20ce783ff616c941535750 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-365,7
+365,7
@@
my(%suppress_cc);
if (@suppress_cc) {
foreach my $entry (@suppress_cc) {
die "Unknown --suppress-cc field: '$entry'\n"
- unless $entry =~ /^(all|cccmd|cc|author|self|sob|body|bodycc)$/;
+ unless $entry =~ /^(
?:
all|cccmd|cc|author|self|sob|body|bodycc)$/;
$suppress_cc{$entry} = 1;
}
}
git clone https://git.99rst.org/PROJECT