diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2009-04-05 04:15:16 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-04 23:57:59 -0700 |
commit | 89a56bfbd3fd855cb0c2a381520e6255de41a55e (patch) | |
tree | c8053ce97194a4314934093cfdb9cabb2307647f /perl | |
parent | e96f3689ecd95997a2a474c2b7f21b0a67f138b1 (diff) | |
download | git-89a56bfbd3fd855cb0c2a381520e6255de41a55e.tar.gz |
add --html-path to get the location of installed HTML docs
This can be used in GUIs to open installed HTML documentation in the
browser.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Git.pm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/perl/Git.pm b/perl/Git.pm index 7d7f2b1d36..291ff5b53c 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -56,7 +56,7 @@ require Exporter; @EXPORT_OK = qw(command command_oneline command_noisy command_output_pipe command_input_pipe command_close_pipe command_bidi_pipe command_close_bidi_pipe - version exec_path hash_object git_cmd_try + version exec_path html_path hash_object git_cmd_try remote_refs temp_acquire temp_release temp_reset temp_path); @@ -492,6 +492,16 @@ C<git --exec-path>). Useful mostly only internally. sub exec_path { command_oneline('--exec-path') } +=item html_path () + +Return path to the Git html documentation (the same as +C<git --html-path>). Useful mostly only internally. + +=cut + +sub html_path { command_oneline('--html-path') } + + =item repo_path () Return path to the git repository. Must be called on a repository instance. |