From: Jonas Fonseca <fonseca@diku.dk>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>
Subject: [PATCH] revert/cherry-pick: allow the last parameter to be -h
Date: Tue, 22 May 2007 23:29:45 +0200 [thread overview]
Message-ID: <20070522212945.GA8002@diku.dk> (raw)
... to ask for the usage string.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
builtin-revert.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/builtin-revert.c b/builtin-revert.c
index ea2f15b..7984aeb 100644
--- a/builtin-revert.c
+++ b/builtin-revert.c
@@ -61,6 +61,8 @@ static void parse_options(int argc, const char **argv)
}
arg = argv[argc - 1];
+ if (!strcmp(arg, "-h"))
+ usage(usage_str);
if (get_sha1(arg, sha1))
die ("Cannot find '%s'", arg);
commit = (struct commit *)parse_object(sha1);
--
1.5.2.rc3.800.ga489e-dirty
--
Jonas Fonseca
next reply other threads:[~2007-05-22 21:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 21:29 Jonas Fonseca [this message]
2007-05-22 22:11 ` [PATCH] revert/cherry-pick: allow the last parameter to be -h Alex Riesen
2007-05-22 22:23 ` Junio C Hamano
2007-05-23 5:31 ` Jonas Fonseca
2007-05-23 5:52 ` Junio C Hamano
2007-05-23 6:57 ` Jonas Fonseca
2007-05-23 7:04 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070522212945.GA8002@diku.dk \
--to=fonseca@diku.dk \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.