Skip to content

Commit 4adbf38

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fef381e commit 4adbf38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-send-email.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ sub is_format_patch_arg {
706706
if (defined($format_patch)) {
707707
return $format_patch;
708708
}
709-
die sprintf(__ <<EOF, $f, $f);
709+
die sprintf(__(<<EOF), $f, $f);
710710
File '%s' exists but it could also be the range of commits
711711
to produce patches for. Please disambiguate by...
712712
@@ -792,7 +792,7 @@ sub get_patch_subject {
792792
my $tpl_in_reply_to = $initial_in_reply_to || '';
793793
my $tpl_reply_to = $reply_to || '';
794794

795-
print $c <<EOT1, Git::prefix_lines("GIT: ", __ <<EOT2), <<EOT3;
795+
print $c <<EOT1, Git::prefix_lines("GIT: ", __(<<EOT2)), <<EOT3;
796796
From $tpl_sender # This line is ignored.
797797
EOT1
798798
Lines beginning in "GIT:" will be removed.

0 commit comments

Comments
 (0)