|
|
|
@ -361,12 +361,15 @@ static void show_man_page(const char *git_cmd)
@@ -361,12 +361,15 @@ static void show_man_page(const char *git_cmd)
|
|
|
|
|
{ |
|
|
|
|
struct man_viewer_list *viewer; |
|
|
|
|
const char *page = cmd_to_page(git_cmd); |
|
|
|
|
const char *fallback = getenv("GIT_MAN_VIEWER"); |
|
|
|
|
|
|
|
|
|
setup_man_path(); |
|
|
|
|
for (viewer = man_viewer_list; viewer; viewer = viewer->next) |
|
|
|
|
{ |
|
|
|
|
exec_viewer(viewer->name, page); /* will return when unable */ |
|
|
|
|
} |
|
|
|
|
if (fallback) |
|
|
|
|
exec_viewer(fallback, page); |
|
|
|
|
exec_viewer("man", page); |
|
|
|
|
die("no man viewer handled the request"); |
|
|
|
|
} |
|
|
|
|