summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-18 21:40:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-18 21:40:07 (GMT)
commit1f7b196e2181c4d23959193327941ee4e065748c (patch)
treef8ec4920bbfb3e9903096b9556ab611ab990a2c7 /git-send-email.perl
parentf12fffd347ac1efc11381dfdce5aa4108731742d (diff)
parent0d6b21e781be54423e85e3968178a74bb8b90969 (diff)
downloadgit-1f7b196e2181c4d23959193327941ee4e065748c.zip
git-1f7b196e2181c4d23959193327941ee4e065748c.tar.gz
git-1f7b196e2181c4d23959193327941ee4e065748c.tar.bz2
Merge branch 'jd/send-email-to-whom' into HEAD
A question by "git send-email" to ask the identity of the sender has been updated. * jd/send-email-to-whom: send-email: fix grammo in the prompt that asks e-mail recipients
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 1406f64..6958785 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -827,9 +827,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
@@ -924,7 +925,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);
}