summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2008-08-29 15:00:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-30 04:46:33 (GMT)
commit5059a427804f9fefaf75dd1aa92cb620ce9219c7 (patch)
treeb1719659fd78857880c0b2d4f1a4824c20b15084 /Documentation
parent445cac18c015809a7fcb4a570d3c6571b1ddaf7d (diff)
downloadgit-5059a427804f9fefaf75dd1aa92cb620ce9219c7.zip
git-5059a427804f9fefaf75dd1aa92cb620ce9219c7.tar.gz
git-5059a427804f9fefaf75dd1aa92cb620ce9219c7.tar.bz2
builtin-help: fallback to GIT_MAN_VIEWER before man
In some situations it is useful to be able to switch viewers via the environment, e.g. in Emacs shell buffers. So check the GIT_MAN_VIEWER environment variable and try it before falling back to "man". Signed-off-by: Romain Francoise <romain@orebokech.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-help.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/git-help.txt b/Documentation/git-help.txt
index f414583..d9b9c34 100644
--- a/Documentation/git-help.txt
+++ b/Documentation/git-help.txt
@@ -112,7 +112,9 @@ For example, this configuration:
will try to use konqueror first. But this may fail (for example if
DISPLAY is not set) and in that case emacs' woman mode will be tried.
-If everything fails the 'man' program will be tried anyway.
+If everything fails, or if no viewer is configured, the viewer specified
+in the GIT_MAN_VIEWER environment variable will be tried. If that
+fails too, the 'man' program will be tried anyway.
man.<tool>.path
~~~~~~~~~~~~~~~