aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-09-30 13:43:04 +0000
committerJunio C Hamano <gitster@pobox.com>2010-09-30 12:20:33 -0700
commite9bf741b887aadd227557804d3560ebd07b1dd09 (patch)
tree38ca6ad2087a2f74ace5e8800ec4c25606dd9286
parentd5c7d69d0fa25f1b5df50e12280a622f28319f16 (diff)
downloadgit-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.gz
git-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.xz
send-email: use (?:) instead of () if no match variables are needed
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.comReviewed-by: Avery Pennarun <apenwarr@gmail.com> Reviewed-by: Jeff King <peff@peff.net> > Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-send-email.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index c012b9556..5a0c4a8ae 100755
--- 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;
}
}