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

Re: [PATCH 1/3] git-help: add -i|--info option to display info page.

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 2, 2007, 09:25 UTC
Message-ID
<7vodd9zbvt.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<475272CF.40602@obry.net>
Pascal Obry <pascal@obry.net> writes:
Show 10 quoted lines
> Christian Couder a écrit :
>> "git help --info XXX" will now call "info git-XXX".
>
> If would be nice if this could be more generic. For example I'd like to
> use Emacs woman mode instead of info. Can't we have something like
>
>    $ git help --ext XXX
>
> "ext" standing for external and calling whatever command recorded into
> .gitconfig for example ?

There is a bit of conflict here. We could do that and make the implementation of "ext" command responsible to transform "commit" in

	$ git help --ext commit

to the location of manual page (or formatted HTML page, or node in the info documentation). git itself does not need to know much about where the help material is in such an implementation.

But Christian's series is about making such "ext" thing easier to write. No matter what kind of web browser is used, it needs to be told where the preformatted HTML page for git-commit command is (and it does not care where git-commit.1 manpage is found or what the node is called in git.info document). It makes it a bit too limiting by defining -w (web) and -i (info) upfront without offering -x (ext), but we need to start somewhere.

Having said that, I think this is a post 1.5.4 material. Please keep the discussion going, so that we can have something people can agree on early after 1.5.4.

Previous: Pascal ObryNext: Christian Couder
Message 3 of 6 in “git-help: add -i|--info option to display info page.”
  1. 1/3 git-help: add -i|--info option to display info page.Christian Couder, Dec 2, 2007
  2. Pascal ObryDec 2, 2007
  3. Junio C HamanoDec 2, 2007
  4. Christian CouderDec 3, 2007
  5. Pascal ObryDec 3, 2007
  6. Christian CouderDec 4, 2007

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.