author | Jeff King <peff@peff.net> | |
Fri, 18 Jan 2008 14:19:36 +0000 (09:19 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Jan 2008 21:29:32 +0000 (13:29 -0800) | ||
commit | aa54892f5ada8282643dc7387b33261c7135d784 | |
tree | 075bf84e1c434d7fe4a0f25bdf5559fe5740e539 | tree | snapshot |
parent | 5a7b1b571e2bf59c65f9e5333414d2e0f7df6952 | commit | diff |
send-email: detect invocation errors earlier
We never even look at the command line arguments until after
we have prompted the user for some information. So running
"git send-email" without arguments would prompt for "from"
and "to" headers, only to then die with "No patch files
specified." Instead, let's try to do as much error checking
as possible before getting user input.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We never even look at the command line arguments until after
we have prompted the user for some information. So running
"git send-email" without arguments would prompt for "from"
and "to" headers, only to then die with "No patch files
specified." Instead, let's try to do as much error checking
as possible before getting user input.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | diff | blob | history |