Skip to content

Commit 1f7b196

Browse files
committed
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
2 parents f12fffd + 0d6b21e commit 1f7b196

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-send-email.perl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,9 +827,10 @@ sub file_declares_8bit_cte {
827827
# But it's a no-op to run sanitize_address on an already sanitized address.
828828
$sender = sanitize_address($sender);
829829

830+
my $to_whom = "To whom should the emails be sent (if anyone)?";
830831
my $prompting = 0;
831832
if (!@initial_to && !defined $to_cmd) {
832-
my $to = ask("Who should the emails be sent to (if any)? ",
833+
my $to = ask("$to_whom ",
833834
default => "",
834835
valid_re => qr/\@.*\./, confirm_only => 1);
835836
push @initial_to, parse_address_line($to) if defined $to; # sanitized/validated later
@@ -924,7 +925,7 @@ sub validate_address {
924925
cleanup_compose_files();
925926
exit(0);
926927
}
927-
$address = ask("Who should the email be sent to (if any)? ",
928+
$address = ask("$to_whom ",
928929
default => "",
929930
valid_re => qr/\@.*\./, confirm_only => 1);
930931
}

0 commit comments

Comments
 (0)