diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2009-04-05 03:48:21 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-04-05 12:29:10 -0700 |
commit | 3eb5682b0b1c16c1b9232f04aff13bd189573b4d (patch) | |
tree | e9482edd0edf9f313fbf331563d1a09840e36cc6 /lib | |
parent | Merge branch 'maint' (diff) | |
download | tgif-3eb5682b0b1c16c1b9232f04aff13bd189573b4d.tar.xz |
git-gui: use `git --html-path` to get the location of installed HTML docs
Previously a hardcoded path $GIT_EXEC_PATH/../Documentation/ was used to
search for the documentation, when the user has asked for it via menu
"Help -> Online Documentation".
This didn't work for the default directory structure.
To find the path reliably, use the new git command line option, which
returns the correct path.
If the output of `git --html-path` is empty because git is not found or
the option is not yet supported in the installed git, the documentation
from kernel.org is launched. There is no additional guessing of the
right location of the installed docs.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions