]> git.99rst.org Git - git.git/commit
help: convert git_cmd to page in one place
authorAndrei Rybak <redacted>
Sun, 4 Jul 2021 15:39:12 +0000 (17:39 +0200)
committerJunio C Hamano <redacted>
Tue, 6 Jul 2021 20:09:20 +0000 (13:09 -0700)
commitd5659f856f3084d33d2379958dd3eefd8a24379f
treea44eb23b93166d2e91286cb718681aa88a78a7e9
parent670b81a890388c60b7032a4f5b879f2ece8c4558
help: convert git_cmd to page in one place

Depending on the chosen format of help pages, git-help uses function
show_man_page, show_info_page, or show_html_page.  The first thing all
three functions do is to convert given `git_cmd` to a `page` using
function cmd_to_page.

Move the common part of these three functions to function cmd_help to
avoid code duplication.

Signed-off-by: Andrei Rybak <redacted>
Reviewed-by: Felipe Contreras <redacted>
Acked-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/help.c
git clone https://git.99rst.org/PROJECT