git-gui: Offer quick access to the HTML formatted documentation.
commit273984fc4f26ab92aa8ebf5b033b9cdb56322b71
authorShawn O. Pearce <spearce@spearce.org>
Mon, 29 Jan 2007 01:00:36 +0000 (28 20:00 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 29 Jan 2007 06:12:42 +0000 (29 01:12 -0500)
treea41300f3fdab8023ce20df168121119ab8927457
parent6b90d39186dbfabfff94692d33d0a6e94f02016c
git-gui: Offer quick access to the HTML formatted documentation.

Users may want to be able to read Git documentation, even if they
are not command line users.  There are many important concepts and
terms covered within the standard Git documentation which would be
useful to even non command line using people.

We now try to offer an 'Online Documentation' menu option within the
Help menu.  First we try to guess to see what browser the user has
setup.  We default to instaweb.browser, if set, as this is probably
accurate for the user's configuration.  If not then we try to guess
based on the operating system and the available browsers for each.
We prefer documentation which is installed parallel to Git's own
executables, e.g. `git --exec-path`/../Documentation/index.html, as
that is how I typically install the HTML docs.  If those are not found
then we open the documentation published on kernel.org.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh