git-help -i: show info documentation from matching version of git

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2007-12-10 01:35:29 -08:00
parent 78d39f98f3
commit a149a1a44a
2 changed files with 6 additions and 1 deletions

1
help.c
View File

@ -286,6 +286,7 @@ static void show_man_page(const char *git_cmd)
static void show_info_page(const char *git_cmd)
{
const char *page = cmd_to_page(git_cmd);
setenv("INFOPATH", GIT_INFO_PATH, 1);
execlp("info", "info", "gitman", page, NULL);
}