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

Re: [PATCH] Let git-help prefer man-pages installed with this version of git

From
SOSergei Organov <osv@javad.com>
Date
Dec 7, 2007, 12:49 UTC
Message-ID
<87prxi6567.fsf@osv.gnss.ru>
In-Reply-To
<47593EB2.3020309@op5.se>
Andreas Ericsson <ae@op5.se> writes:
> Sergei Organov wrote:
[...]
Show 7 quoted lines
>> To tell the truth, I'd prefer to just use -M option of man and don't
>> rely on MANPATH at all, so that 'git help' will issue error if there is
>> no documentation installed for this particular version of git.
>>
>
> Does "man -M" work everywhere, or is your patch opening a can of worms
> to get probably-not-needed functionality?

This patch doesn't use "man -M", it tweaks MANPATH instead. Partly because the rest of 'git' tweaks 'PATH' to get correct executable to be run, and not run it using explicit absolute path, so tweaking MANPATH is consistent with the rest of git.

-- 
Sergei.
Previous: Andreas EricssonNext: Junio C Hamano
Message 7 of 10 in “Let git-help prefer man-pages installed with this version of git”
  1. Let git-help prefer man-pages installed with this version of gitSergei Organov, Dec 6, 2007
  2. Johannes SchindelinDec 6, 2007
  3. Sergei OrganovDec 7, 2007
  4. Junio C HamanoDec 7, 2007
  5. Sergei OrganovDec 7, 2007
  6. Andreas EricssonDec 7, 2007
  7. Sergei OrganovDec 7, 2007
  8. Junio C HamanoDec 7, 2007
  9. David BrownDec 7, 2007
  10. David BrownDec 7, 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.