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

Re: [PATCH v3 2/3] Allow help.htmlpath to be a URL prefix

From
Chris Webb <chris@arachsys.com>
Date
Jun 28, 2012, 23:38 UTC
Message-ID
<20120628233830.GA2765@arachsys.com>
In-Reply-To
<7vvcib3zam.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> Sounds sensible and looks reasonable.  Thanks.
Great! Glad they were of interest.
> I do not think [PATCH 3/3] is a positive change at all, though.

Yes, I think my aversion for being thrown into the full manual with git foo --help is quite unusual, so this one's probably better left as one of my idiosyncratic local patches.

The reason I thought there was a chance this could be of wider interest is that, on a machine without man pages,

  $ git show --help
  warning: failed to exec 'man': No such file or directory
  fatal: no man viewer handled the request

is a bit unfriendly when git actually has enough internal help to be able to offer

  $ git show -h    
  usage: git log [<options>] [<since>..<until>] [[--] <path>...]
     or: git show [options] <object>...
...but only if you know that -h exists and is not a synonym for --help.
Cheers,
Chris.
Previous: Junio C HamanoNext: Chris Webb
Message 4 of 6 in “Add config variable to set HTML path for git-help --web”
  1. 1/3 Add config variable to set HTML path for git-help --webChris Webb, Jun 28, 2012
  2. 2/3 Allow help.htmlpath to be a URL prefixChris Webb, Jun 28, 2012
  3. Junio C HamanoJun 28, 2012
  4. Chris WebbJun 28, 2012
  5. 3/3 Add a help format 'usage' to provide brief command usageChris Webb, Jun 28, 2012
  6. Junio C HamanoJun 28, 2012

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.