Skip to content

Commit

Permalink
Merge branch 'ja/shorthelp'
Browse files Browse the repository at this point in the history
* ja/shorthelp:
  help: remove extra blank line after "See 'git --help'" message
  On error, do not list all commands, but point to --help option
  • Loading branch information
Junio C Hamano committed Oct 27, 2007
2 parents d633f70 + a238917 commit 85b0045
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 85b0045

Please sign in to comment.