From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Petr Baudis <pasky@suse.cz>, git@vger.kernel.org
Subject: [PATCH] git-rev-list --help anywhere
Date: Sun, 19 Feb 2006 12:09:11 +0100 [thread overview]
Message-ID: <20060219110911.GA6041@steel.home> (raw)
Junio C Hamano, Sat, Feb 18, 2006 19:55:02 +0100:
> Petr Baudis <pasky@suse.cz> writes:
>
> > $ git-rev-list --help
> > fatal: Not a git repository
>
> Hmph, true. Ideas?
>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
rev-list.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
0855207c43a83007e4c060a03c39269f379fed41
diff --git a/rev-list.c b/rev-list.c
index f2d1105..a059e45 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -755,10 +755,16 @@ static void handle_all(struct commit_lis
int main(int argc, const char **argv)
{
- const char *prefix = setup_git_directory();
+ const char *prefix;
struct commit_list *list = NULL;
int i, limited = 0;
+ for (i = 1 ; i < argc; i++)
+ if ( !strcmp(argv[i], "--help") )
+ usage(rev_list_usage);
+
+ prefix = setup_git_directory();
+
for (i = 1 ; i < argc; i++) {
int flags;
const char *arg = argv[i];
--
1.2.1.g59a08
next reply other threads:[~2006-02-19 11:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-19 11:09 Alex Riesen [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-02-19 11:26 [PATCH] git-rev-list --help anywhere linux
2006-02-19 18:39 ` Alex Riesen
2006-02-19 19:25 ` Johannes Schindelin
2006-02-19 19:39 ` linux
2006-02-19 19:40 ` A Large Angry SCM
2006-02-20 5:52 ` 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=20060219110911.GA6041@steel.home \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=pasky@suse.cz \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).