summaryrefslogtreecommitdiff
path: root/t/t4018
diff options
context:
space:
mode:
authorLibravatar Andrei Rybak <rybak.a.v@gmail.com>2021-07-04 17:39:12 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-07-06 13:09:20 -0700
commitd5659f856f3084d33d2379958dd3eefd8a24379f (patch)
treea44eb23b93166d2e91286cb718681aa88a78a7e9 /t/t4018
parentThe second batch (diff)
downloadtgif-d5659f856f3084d33d2379958dd3eefd8a24379f.tar.xz
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 <rybak.a.v@gmail.com> Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com> Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018')
0 files changed, 0 insertions, 0 deletions