summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-09-12 21:22:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-09-12 21:22:03 (GMT)
commitb1379ba9b1a0132b5f6d431379a1fcf01f5d7c11 (patch)
tree07d8e2e197dfc22c8ec8b6118c34fe870bc557e5 /git-send-email.perl
parent90585604a72aaf56158069023dbcc6a61c6d7d50 (diff)
parent618374930ab0de78c3994a633ca5f26e286810cf (diff)
downloadgit-b1379ba9b1a0132b5f6d431379a1fcf01f5d7c11.zip
git-b1379ba9b1a0132b5f6d431379a1fcf01f5d7c11.tar.gz
git-b1379ba9b1a0132b5f6d431379a1fcf01f5d7c11.tar.bz2
Merge branch 'sb/send-email-reconfirm-fix'
* sb/send-email-reconfirm-fix: send-email: initial_to and initial_reply_to are both optional
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 607137b..aea66a0 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -759,7 +759,8 @@ if (!defined $sender) {
}
if (!@initial_to && !defined $to_cmd) {
- my $to = ask("Who should the emails be sent to? ",
+ my $to = ask("Who should the emails be sent to (if any)? ",
+ default => "",
valid_re => qr/\@.*\./, confirm_only => 1);
push @initial_to, parse_address_line($to) if defined $to; # sanitized/validated later
$prompting++;
@@ -786,7 +787,8 @@ sub expand_one_alias {
if ($thread && !defined $initial_reply_to && $prompting) {
$initial_reply_to = ask(
- "Message-ID to be used as In-Reply-To for the first email? ",
+ "Message-ID to be used as In-Reply-To for the first email (if any)? ",
+ default => "",
valid_re => qr/\@.*\./, confirm_only => 1);
}
if (defined $initial_reply_to) {