git-rev-list --help anywhere
PATCH 1/1 git-rev-list --help anywhere
Junio C Hamano, Sat, Feb 18, 2006 19:55:02 +0100:
Quoted 7 lines
Quoted 2 lines · Petr Baudis
$ git-rev-list --help fatal: Not a git repositoryHmph, true. Ideas?
Signed-off-by Alex Riesen <[email protected]>
---
rev-list.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
0855207c43a83007e4c060a03c39269f379fed41
rev-list.c +7 -1
@@ -755,10 +755,16 @@ static void handle_all(struct commit_lisint 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];
Signature · 1 line
1.2.1.g59a08