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

Re: Suggestion: "man git clone"

From
Michael J Gruber <michaeljgruber+gmane@fastmail.fm>
Date
Aug 22, 2008, 11:02 UTC
Message-ID
<g8m6d1$7nf$1@ger.gmane.org>
In-Reply-To
<48ACB29C.7000606@zytor.com>
H. Peter Anvin venit, vidit, dixit 21.08.2008 02:11:
Show 11 quoted lines
> Given the recent change of "git-foo" to "git foo", it would be really 
> nice if one could type, for example:
> 
> 	man git clone
> 
> and actually get the man page for the git clone command.  There are 
> quite a few other pieces of software which also could benefit from that 
> kind of indirection.
> 
> Right now the above command shows the man page git(1) followed by 
> clone(2), which I believe has be classified as utterly useless behaviour...

The discussion seems to show that altering man and relying on the new behaviour is no option, and neither is playing games with man's section options.

How about:
- Change all references inside git (warnings etc) from "man git-bla" to
"git help bla".
- Change all references in the help pages (gitlinks) accordingly.
- Put a warning in the main git man page which redirects the confused
("If you were looking for the manpage of "git bla" and issued "man git
bla", please refer to "man git-bla" or "git help bla".'), maybe just
before the command list there.
This could be supported by an alias mapping "git man" to "git help -m".

I've heard about some other SCMs which have only "scm help bla", so this suggestion would be in-line with common usage. [Not that git would have to learn from other SCM's ;) ]

Michael
Previous: H. Peter AnvinNext: Derek Fawcus
Message 26 of 29 in “Suggestion: "man git clone"”
  1. H. Peter AnvinAug 21, 2008
  2. Peter Valdemar Mørch (Lists)Aug 21, 2008
  3. H. Peter AnvinAug 21, 2008
  4. Avery PennarunAug 21, 2008
  5. H. Peter AnvinAug 21, 2008
  6. Jeff KingAug 21, 2008
  7. Jeff KingAug 21, 2008
  8. H. Peter AnvinAug 21, 2008
  9. Jeff KingAug 21, 2008
  10. Bert WesargAug 21, 2008
  11. A Large Angry SCMAug 22, 2008
  12. Federico LucifrediAug 21, 2008
  13. H. Peter AnvinAug 21, 2008
  14. Federico LucifrediAug 22, 2008
  15. Jeff KingAug 22, 2008
  16. Jeff KingAug 22, 2008
  17. Miklos VajnaAug 22, 2008
  18. Jeff KingAug 22, 2008
  19. Federico LucifrediAug 22, 2008
  20. Federico LucifrediAug 22, 2008
  21. Colin WatsonJun 28, 2009
  22. Federico LucifrediJul 6, 2009
  23. Federico LucifrediJul 6, 2009
  24. Federico LucifrediSep 4, 2008
  25. H. Peter AnvinSep 4, 2008
  26. Michael J GruberAug 22, 2008
  27. Derek FawcusAug 22, 2008
  28. Mikael MagnussonAug 22, 2008
  29. Matthieu MoyAug 25, 2008

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.