git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] "git help" and "git help -a" shouldn't exit(1) unless they error
@ 2007-10-21 21:47 Scott R Parish
  2007-10-22  5:47 ` Shawn O. Pearce
  0 siblings, 1 reply; 4+ messages in thread
From: Scott R Parish @ 2007-10-21 21:47 UTC (permalink / raw)
  To: git

Signed-off-by: Scott R Parish <srp@srparish.net>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-22  6:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-21 21:47 [PATCH] "git help" and "git help -a" shouldn't exit(1) unless they error Scott R Parish
2007-10-22  5:47 ` Shawn O. Pearce
2007-10-22  6:19   ` Scott Parish
2007-10-22  6:37     ` Shawn O. Pearce

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).