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>
This commit is contained in:

committed by
Junio C Hamano

parent
fef381e6dc
commit
4adbf387bf
@ -706,7 +706,7 @@ sub is_format_patch_arg {
|
|||||||
if (defined($format_patch)) {
|
if (defined($format_patch)) {
|
||||||
return $format_patch;
|
return $format_patch;
|
||||||
}
|
}
|
||||||
die sprintf(__ <<EOF, $f, $f);
|
die sprintf(__(<<EOF), $f, $f);
|
||||||
File '%s' exists but it could also be the range of commits
|
File '%s' exists but it could also be the range of commits
|
||||||
to produce patches for. Please disambiguate by...
|
to produce patches for. Please disambiguate by...
|
||||||
|
|
||||||
@ -792,7 +792,7 @@ if ($compose) {
|
|||||||
my $tpl_in_reply_to = $initial_in_reply_to || '';
|
my $tpl_in_reply_to = $initial_in_reply_to || '';
|
||||||
my $tpl_reply_to = $reply_to || '';
|
my $tpl_reply_to = $reply_to || '';
|
||||||
|
|
||||||
print $c <<EOT1, Git::prefix_lines("GIT: ", __ <<EOT2), <<EOT3;
|
print $c <<EOT1, Git::prefix_lines("GIT: ", __(<<EOT2)), <<EOT3;
|
||||||
From $tpl_sender # This line is ignored.
|
From $tpl_sender # This line is ignored.
|
||||||
EOT1
|
EOT1
|
||||||
Lines beginning in "GIT:" will be removed.
|
Lines beginning in "GIT:" will be removed.
|
||||||
|
Reference in New Issue
Block a user