summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-04-24 12:31:44 -0700
committerJunio C Hamano <gitster@pobox.com>2016-04-25 13:35:38 -0700
commit0d6b21e781be54423e85e3968178a74bb8b90969 (patch)
treebc709ec1727e3dac8089722aa5bd782d28460369 /git-send-email.perl
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-0d6b21e781be54423e85e3968178a74bb8b90969.tar.gz
send-email: fix grammo in the prompt that asks e-mail recipientsjd/send-email-to-whom
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>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index e1e9b1460c..9bccf7ac41 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -785,9 +785,10 @@ if (!defined $sender) {
# But it's a no-op to run sanitize_address on an already sanitized address.
$sender = sanitize_address($sender);
+my $to_whom = "To whom should the emails be sent (if anyone)?";
my $prompting = 0;
if (!@initial_to && !defined $to_cmd) {
- my $to = ask("Who should the emails be sent to (if any)? ",
+ my $to = ask("$to_whom ",
default => "",
valid_re => qr/\@.*\./, confirm_only => 1);
push @initial_to, parse_address_line($to) if defined $to; # sanitized/validated later
@@ -885,7 +886,7 @@ sub validate_address {
cleanup_compose_files();
exit(0);
}
- $address = ask("Who should the email be sent to (if any)? ",
+ $address = ask("$to_whom ",
default => "",
valid_re => qr/\@.*\./, confirm_only => 1);
}