提交 2ef58055 编写于 作者: Q Quy Tonthat 提交者: Junio C Hamano

git-send-email: default value for "From:" field.

If user hits enter at the prompt for
"Who should the emails appear to be from?",
the value for "From:" field was emptied instead of GIT_COMMITER_IDENT.
Signed-off-by: NQuy Tonthat <qtonthat@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 4aec56d1
......@@ -178,11 +178,10 @@ sub format_2822_time {
if (!defined $from) {
$from = $author || $committer;
do {
$_ = $term->readline("Who should the emails appear to be from? ",
$from);
$_ = $term->readline("Who should the emails appear to be from? [$from] ");
} while (!defined $_);
$from = $_;
$from = $_ if ($_);
print "Emails will be sent from: ", $from, "\n";
$prompting++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册