projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd8175f
)
On error, do not list all commands, but point to --help option
author
Jari Aalto
<jari.aalto@cante.net>
Sat, 20 Oct 2007 22:41:41 +0000
(
01:41
+0300)
committer
Shawn O. Pearce
<spearce@spearce.org>
Mon, 22 Oct 2007 05:57:50 +0000
(
01:57
-0400)
- Remove out call to list_common_cmds_help()
- Send error message to stderr, not stdout.
Signed-off-by: Jari Aalto <jari.aalto@cante.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
help.c
patch
|
blob
|
history
diff --git
a/help.c
b/help.c
index 1cd33ece6bcec6f71c6749205c18c0f413034d89..814a8cd02a4bcd80f68b406116b77ee8acbc3566 100644
(file)
--- a/
help.c
+++ b/
help.c
@@
-185,8
+185,7
@@
static void show_man_page(const char *git_cmd)
void help_unknown_cmd(const char *cmd)
{
- printf("git: '%s' is not a git-command\n\n", cmd);
- list_common_cmds_help();
+ fprintf(stderr, "git: '%s' is not a git-command. See --help\n\n", cmd);
exit(1);
}