[PATCH 5/9] send-email: use function syntax instead of barewords
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 12, 2021, 13:48 UTC
- Message-ID
- <patch-5.9-8846d40fc0-20210512T132955Z-avarab@gmail.com>
- In-Reply-To
- <cover-0.9-0000000000-20210512T132955Z-avarab@gmail.com>
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> --- git-send-email.perl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-send-email.perl b/git-send-email.perl index 9ff315f775..da46925aa0 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -678,7 +678,7 @@ sub is_format_patch_arg { if (defined($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 to produce patches for. Please disambiguate by... @@ -764,7 +764,7 @@ sub get_patch_subject { my $tpl_in_reply_to = $initial_in_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. EOT1 Lines beginning in "GIT:" will be removed.
-- 2.31.1.909.g789bb6d90e