Code

Let git-help prefer man-pages installed with this version of git
authorSergei Organov <osv@javad.com>
Thu, 6 Dec 2007 18:33:01 +0000 (21:33 +0300)
committerJunio C Hamano <gitster@pobox.com>
Sat, 8 Dec 2007 10:50:54 +0000 (02:50 -0800)
commit8e566f24b369836c43d720e4246a152b0e7724c6
tree05a457911f11b3201ec5489ff486a970bbc85b3a
parent9758ecde9a0be8b9758d0a512c90f8bfc865af4f
Let git-help prefer man-pages installed with this version of git

Prepend $(prefix)/share/man to the MANPATH environment variable before
invoking 'man' from help.c:show_man_page().  There may be other git
documentation in the user's MANPATH but the user is asking a specific
instance of git about its own documentation, so we'd better show the
documentation for _that_ instance of git.

Signed-off-by: Sergei Organov <osv@javad.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
help.c