summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-10-27 06:26:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-10-27 06:26:49 (GMT)
commit85b00455057c19a993eeaee2606af550b8d4de10 (patch)
treebbc48858028e4fb67db3029ad7971f7afafe2bf2
parentd633f702a007ecdd19cfd884c6da90f51156ca63 (diff)
parenta238917ba48c44de8a00e3aee7898d9beb5afcd8 (diff)
downloadgit-85b00455057c19a993eeaee2606af550b8d4de10.zip
git-85b00455057c19a993eeaee2606af550b8d4de10.tar.gz
git-85b00455057c19a993eeaee2606af550b8d4de10.tar.bz2
Merge branch 'ja/shorthelp'
* ja/shorthelp: help: remove extra blank line after "See 'git --help'" message On error, do not list all commands, but point to --help option
-rw-r--r--help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/help.c b/help.c
index 1cd33ec..e5662d9 100644
--- 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 'git --help'.\n", cmd);
exit(1);
}