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>
Ævar Arnfjörð Bjarmason committed
Sep 30, 2010 at 13:43 UTC
e9bf741b887aadd227557804d3560ebd07b1dd09
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -365,7 +365,7 @@ my(%suppress_cc);
365
if (@suppress_cc) {
366
foreach my $entry (@suppress_cc) {
367
die "Unknown --suppress-cc field: '$entry'\n"
368
- unless $entry =~ /^(all|cccmd|cc|author|self|sob|body|bodycc)$/;
368
+ unless $entry =~ /^(?:all|cccmd|cc|author|self|sob|body|bodycc)$/;
369
$suppress_cc{$entry} = 1;
370
}
371
}