From: Scott R Parish Date: Sun, 21 Oct 2007 21:47:45 GMT Subject: [PATCH] "git help" and "git help -a" shouldn't exit(1) unless they error Message-ID: <20071021214744.GH16291@srparish.net> Signed-off-by: Scott R Parish --- help.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/help.c b/help.c index 1cd33ec..b0d2dd4 100644 --- a/help.c +++ b/help.c @@ -204,14 +204,14 @@ int cmd_help(int argc, const char **argv, const char *prefix) if (!help_cmd) { printf("usage: %s\n\n", git_usage_string); list_common_cmds_help(); - exit(1); + exit(0); } else if (!strcmp(help_cmd, "--all") || !strcmp(help_cmd, "-a")) { printf("usage: %s\n\n", git_usage_string); if(exec_path) list_commands(exec_path, "git-*"); - exit(1); + exit(0); } else -- 1.5.3.4.209.g5d1ce-dirty