send-email: fix grammo in the prompt that asks e-mail recipients
The message, which dates back to the very original version 83b24437 made in 2005, sounds clumsy, grammatically incorrect, and is hard to understand. Reported-by: John Darrington <john@darrington.wattle.id.au> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Apr 24, 2016 at 12:31 UTC
0d6b21e781be54423e85e3968178a74bb8b90969
1 file changed
+3
-2
git-send-email.perl
+3
-2
@@ -785,9 +785,10 @@ if (!defined $sender) {
785
# But it's a no-op to run sanitize_address on an already sanitized address.
786
$sender = sanitize_address($sender);
787
788
+my $to_whom = "To whom should the emails be sent (if anyone)?";
789
my $prompting = 0;
790
if (!@initial_to && !defined $to_cmd) {
790
- my $to = ask("Who should the emails be sent to (if any)? ",
791
+ my $to = ask("$to_whom ",
792
default => "",
793
valid_re => qr/\@.*\./, confirm_only => 1);
794
push @initial_to, parse_address_line($to) if defined $to; # sanitized/validated later
@@ -885,7 +886,7 @@ sub validate_address {
886
cleanup_compose_files();
887
exit(0);
888
}
888
- $address = ask("Who should the email be sent to (if any)? ",
889
+ $address = ask("$to_whom ",
890
default => "",
891
valid_re => qr/\@.*\./, confirm_only => 1);
892
}