From e55f36b8b3e1248ebdc4cddfd9b08f2e86b638fb Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Wed, 15 May 2019 23:47:08 +0100 Subject: [PATCH 1/2] git.c: show usage for accessing the git(1) help page It is not immediately obvious how to use the `git help` system to show the git(1) page, with its overview and its background and coordinating material, such as environment variables. Let's simply list it as the last few words of the last usage line. Signed-off-by: Philip Oakley Signed-off-by: Junio C Hamano --- git.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git.c b/git.c index 2dd588674f..08b0dbdca9 100644 --- a/git.c +++ b/git.c @@ -33,7 +33,8 @@ const char git_usage_string[] = const char git_more_info_string[] = N_("'git help -a' and 'git help -g' list available subcommands and some\n" "concept guides. See 'git help ' or 'git help '\n" - "to read about a specific subcommand or concept."); + "to read about a specific subcommand or concept.\n" + "See 'git help git' for an overview of the system."); static int use_pager = -1; From e2dca4566d8fe4f6882b3cdb40d8ad9e45c1360c Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Wed, 15 May 2019 23:47:09 +0100 Subject: [PATCH 2/2] Doc: git.txt: remove backticks from link and add git-scm.com/docs While checking the html formatted git(1) manual page, it was noted that the link to https://git.github.io/htmldocs/git.html was formatted as code. Remove the backticks. While at it, add the https://git-scm.com/docs link which one reviewer noted had linkable section headings. Helped-by: Jeff King Signed-off-by: Philip Oakley Signed-off-by: Junio C Hamano --- Documentation/git.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/git.txt b/Documentation/git.txt index 00156d64aa..3a32572847 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -33,7 +33,8 @@ individual Git commands with "git help command". linkgit:gitcli[7] manual page gives you an overview of the command-line command syntax. A formatted and hyperlinked copy of the latest Git documentation -can be viewed at `https://git.github.io/htmldocs/git.html`. +can be viewed at https://git.github.io/htmldocs/git.html +or https://git-scm.com/docs. OPTIONS