diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-14 15:15:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-14 15:38:32 -0700 |
commit | 51bbccfd1b4a9e2807413022c56ab05c835164fb (patch) | |
tree | c980c1162e1239193f070a58a4e09306663e6761 /t/t9121-git-svn-fetch-renamed-dir.sh | |
parent | send-email: multiedit is a boolean config option (diff) | |
download | tgif-51bbccfd1b4a9e2807413022c56ab05c835164fb.tar.xz |
send-email: validate & reconfirm interactive responses
People answer 'y' to "Who should the emails appear to be from?" and
'n' to "Message-ID to be used as In-Reply-To for the first email?"
for some unknown reason. While it is possible that your local
username really is "y" and you are sending the mail to your local
colleagues, it is possible, and some might even say it is likely,
that it is a user error.
Fortunately, our interactive prompter already has input validation
mechanism built-in. Enhance it so that we can optionally reconfirm
and allow the user to pass an input that does not validate, and
"softly" require input to the sender, in-reply-to, and recipient to
contain "@" and "." in this order, which would catch most cases of
mistakes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9121-git-svn-fetch-renamed-dir.sh')
0 files changed, 0 insertions, 0 deletions