Re: [PATCH] Let git-help prefer man-pages installed with this version of git
- From
- Sergei 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.