summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorTeemu Likonen <tlikonen@iki.fi>2008-06-06 00:15:36 +0300
committerJunio C Hamano <gitster@pobox.com>2008-06-06 09:22:18 -0700
commitb7d9681974e61959f10c7b2c1063b7781c5b904e (patch)
treeee681ee4d4a2b0fe673eb0fd9b6a7a777208efd4 /help.c
parente919cb302e75141c2565106bed2f0b6cb8047570 (diff)
downloadgit-b7d9681974e61959f10c7b2c1063b7781c5b904e.tar.gz
Print info about "git help COMMAND" on git's main usage pages
Git's main usage pages did not show "git help" as a way to get more information on a specific subcommand. This patch adds an info line after the list of git commands currently printed by "git", "git help", "git --help" and "git help --all". Signed-off-by: Teemu Likonen <tlikonen@iki.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/help.c b/help.c
index d89d43796f..8aff94c64a 100644
--- a/help.c
+++ b/help.c
@@ -649,12 +649,14 @@ int cmd_help(int argc, const char **argv, const char *prefix)
if (show_all) {
printf("usage: %s\n\n", git_usage_string);
list_commands();
+ printf("%s\n", git_more_info_string);
return 0;
}
if (!argv[0]) {
printf("usage: %s\n\n", git_usage_string);
list_common_cmds_help();
+ printf("\n%s\n", git_more_info_string);
return 0;
}