summaryrefslogtreecommitdiff
path: root/perl/Git.pm
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2009-04-05 02:15:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-05 06:57:59 (GMT)
commit89a56bfbd3fd855cb0c2a381520e6255de41a55e (patch)
treec8053ce97194a4314934093cfdb9cabb2307647f /perl/Git.pm
parente96f3689ecd95997a2a474c2b7f21b0a67f138b1 (diff)
downloadgit-89a56bfbd3fd855cb0c2a381520e6255de41a55e.zip
git-89a56bfbd3fd855cb0c2a381520e6255de41a55e.tar.gz
git-89a56bfbd3fd855cb0c2a381520e6255de41a55e.tar.bz2
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/Git.pm')
-rw-r--r--perl/Git.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl/Git.pm b/perl/Git.pm
index 7d7f2b1..291ff5b 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.