send-email: use function syntax instead of barewords

Change calls like "__ 'foo'" to "__('foo')" so the Perl compiler doesn't have to guess that "__" is a function. This makes the code more readable. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed May 28, 2021 at 11:23 UTC 4adbf387bfd4b03b838282757e0bdf67e8f9fc8d
1 file changed +2 -2
git-send-email.perl
+2 -2
@@ -706,7 +706,7 @@ sub is_format_patch_arg {
706 if (defined($format_patch)) {
707 return $format_patch;
708 }
709 - die sprintf(__ <<EOF, $f, $f);
709 + die sprintf(__(<<EOF), $f, $f);
710 File '%s' exists but it could also be the range of commits
711 to produce patches for. Please disambiguate by...
712
@@ -792,7 +792,7 @@ if ($compose) {
792 my $tpl_in_reply_to = $initial_in_reply_to || '';
793 my $tpl_reply_to = $reply_to || '';
794
795 - print $c <<EOT1, Git::prefix_lines("GIT: ", __ <<EOT2), <<EOT3;
795 + print $c <<EOT1, Git::prefix_lines("GIT: ", __(<<EOT2)), <<EOT3;
796 From $tpl_sender # This line is ignored.
797 EOT1
798 Lines beginning in "GIT:" will be removed.