Re: Suggestion: "man git clone"
From: Jeff King <hidden>
Date: 2016-06-15 22:45:12
On Thu, Aug 21, 2008 at 01:14:41PM -0700, H. Peter Anvin wrote:
quoted
Ah, OK. My problem was that the pages actually need to be named "am.git", etc. But with 'git' in the section field, "man git am" does work. Unfortunately, it seems to break "man git". :(Yeah, that pretty much makes it not a general solution.
Oh, sorry, this was just me being incompetent. I was testing with MANSECT=git man git am and of course MANSECT=git man git broke because we are no longer looking in section "1". Setting the sections properly (by adding "git" to /etc/manpath.config, or using MANSECT=1:git) and creating a linkfarm in .../man/mangit (with am.git pointing to ../man1/git-am.1) makes both "man git" and "man git am" work fine. The changes to manpath.config make it a bit outside the scope of git's regular install, but maybe this is something distro people would want to do. -Peff