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

Re: [PATCH 2/3] git-help: add -w|--web option to display html man page in a browser.

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 7, 2007, 07:05 UTC
Message-ID
<7vfxyf7zoi.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7v1w9z9h2k.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Christian Couder <chriscool@tuxfamily.org> writes:
> ...
>>> > +init_browser_path() {
>>> > +	browser_path=`git config browser.$1.path`
>>> > +	test -z "$browser_path" && browser_path=$1
>>> > +}
>>>
>>> Please do not contaminate the config file with something the user can
>>> easily use a lot more standardized way (iow $PATH) to configure to his
>>> taste.
>>>
>>> I'd suggest dropping this bit.

Well, I changed my mind. It is a bit funny to have both firefox and iceweasel as "valid-tool", but if we consider $browser to define the external interface and $browser_path to define the implementation, it sort of makes sense to have that configuration. browser_path could be iceweasel for browser firefox.

I'll squash the patch to update the one from the last round (as the last two patches are not yet accepted in 'next' yet), remove the html documentation path fallback, but will leave this part in.

browser.*.path and web.browser configuration need to be documented, if not already, though.

Previous: Junio C HamanoNext: Christian Couder
Message 5 of 8 in “git-help: add -w|--web option to display html man page in a browser.”
  1. 2/3 git-help: add -w|--web option to display html man page in a browser.Christian Couder, Dec 2, 2007
  2. Junio C HamanoDec 6, 2007
  3. Christian CouderDec 7, 2007
  4. Junio C HamanoDec 7, 2007
  5. Junio C HamanoDec 7, 2007
  6. Christian CouderDec 8, 2007
  7. Junio C HamanoDec 6, 2007
  8. Junio C HamanoDec 8, 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.