git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git.c: show usage for accessing the git(1) help page

From
Jeff King <peff@peff.net>
Date
May 15, 2019, 01:53 UTC
Message-ID
<20190515015331.GC13255@sigill.intra.peff.net>
In-Reply-To
<20190515001717.GA138048@google.com>
On Tue, May 14, 2019 at 05:17:17PM -0700, Emily Shaffer wrote:
Show 12 quoted lines
> >  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 <command>' or 'git help <concept>'\n"
> > -	   "to read about a specific subcommand or concept.");
> > +	   "to read about a specific subcommand or concept. Or use 'git help git'.");
> 
> I'm not sure the wording makes sense here. It sounds like you're saying,
> "Or use 'git help git' to read about specific subcommands or concepts."
> which isn't really what I think you're trying to say.
> 
> What about, "Or, use 'git help git' for a detailed guide of the Git
> system as a whole."

I had a similar reaction on reading Philip's patch. I think your suggestion is better. We could even shorten it to just:

  Use 'git help git' for an overview of the system.

Looking at "git help git" I actually think the DESCRIPTION section could do a better job of being a first entry-point for new readers of the documentation. But I don't think that needs to be a blocker for what we're discussing here.

> (I'm still not sure that's quite it - since `git help git` mostly
> details the flags you can pass to git before invoking a subcommand. But
> I'm not sure that `git --help` is the place to say that...)
Yeah, I almost suggested something like:
  Use 'git help git' for options and environment variables that affect
  all subcommands.

I'm not sure if that points people in a useful direction, or if it is getting too much into the weeds (again, probably the description section of git(1) could talk about how to find which documentation where.

I also think it should point to git-scm.com for the hyper-linked documentation, since it's less ugly than the stuff at git.github.io, but that's really getting off-topic. :)

-Peff
Previous: Emily ShafferNext: Philip Oakley
Message 8 of 19 in “git --help not actually showing the git(1) help page..”
  1. Philip OakleyMay 13, 2019
  2. Jeff KingMay 13, 2019
  3. Philip OakleyMay 13, 2019
  4. Junio C HamanoMay 13, 2019
  5. Philip OakleyMay 14, 2019
  6. git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 14, 2019
  7. Emily ShafferMay 15, 2019
  8. Jeff KingMay 15, 2019
  9. Philip OakleyMay 15, 2019
  10. git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 15, 2019
  11. Eric SunshineMay 15, 2019
  12. 0/2 accessing the git(1) help pagePhilip Oakley, May 15, 2019
  13. 1/2 git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 15, 2019
  14. 2/2 Doc: git.txt: remove backticks from link and add git-scm.com/docsPhilip Oakley, May 15, 2019
  15. Junio C HamanoMay 16, 2019
  16. Philip OakleyMay 16, 2019
  17. Jeff KingMay 16, 2019
  18. Philip OakleyMay 16, 2019
  19. Philip OakleyMay 15, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.