summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-09-30 13:43:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-30 19:20:33 (GMT)
commite9bf741b887aadd227557804d3560ebd07b1dd09 (patch)
tree38ca6ad2087a2f74ace5e8800ec4c25606dd9286 /git-send-email.perl
parentd5c7d69d0fa25f1b5df50e12280a622f28319f16 (diff)
downloadgit-e9bf741b887aadd227557804d3560ebd07b1dd09.zip
git-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.gz
git-e9bf741b887aadd227557804d3560ebd07b1dd09.tar.bz2
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>
Diffstat (limited to 'git-send-email.perl')
-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 c012b95..5a0c4a8 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;
}
}