Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cb/send-email-help'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Oct 2011 19:36:23 +0000
(12:36 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 5 Oct 2011 19:36:23 +0000
(12:36 -0700)
* cb/send-email-help:
send-email: add option -h
git-send-email.perl
patch
|
blob
|
history
raw
(from parent 1:
6cf5b81
)
diff --git
a/git-send-email.perl
b/git-send-email.perl
index 98ab33aae7e35c2d288bc34ddb2bbc71f8a16cdd..734356a6fb3b22dceb4a1afe7751811628b60ce7 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-275,7
+275,9
@@
sub signal_handler {
# Begin by accumulating all the variables (defined above), that we will end up
# needing, first, from the command line:
-my $rc = GetOptions("sender|from=s" => \$sender,
+my $help;
+my $rc = GetOptions("h" => \$help,
+ "sender|from=s" => \$sender,
"in-reply-to=s" => \$initial_reply_to,
"subject=s" => \$initial_subject,
"to=s" => \@initial_to,
@@
-313,6
+315,7
@@
sub signal_handler {
"force" => \$force,
);
+usage() if $help;
unless ($rc) {
usage();
}