summaryrefslogtreecommitdiffstats
path: root/Documentation/git-var.txt
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-10-31 02:41:27 +0100
committerJunio C Hamano <gitster@pobox.com>2009-11-13 21:20:47 +0100
commit6361824589bc2d32989a9a33f985d09a368436a3 (patch)
tree31050baa04194fee66e0c05b0e9569c538b41925 /Documentation/git-var.txt
parentTeach git var about GIT_EDITOR (diff)
downloadgit-6361824589bc2d32989a9a33f985d09a368436a3.tar.xz
git-6361824589bc2d32989a9a33f985d09a368436a3.zip
Teach git var about GIT_PAGER
Expose the command found by setup_pager() for scripts to use. Scripts can use this to avoid repeating the logic to look for a proper pager in each command. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-var.txt')
-rw-r--r--Documentation/git-var.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-var.txt b/Documentation/git-var.txt
index 89e4b4fa0c..ef6aa81872 100644
--- a/Documentation/git-var.txt
+++ b/Documentation/git-var.txt
@@ -44,6 +44,12 @@ GIT_EDITOR::
environment variable, then `core.editor` configuration, then
`$VISUAL`, then `$EDITOR`, and then finally 'vi'.
+GIT_PAGER::
+ Text viewer for use by git commands (e.g., 'less'). The value
+ is meant to be interpreted by the shell. The order of preference
+ is the `$GIT_PAGER` environment variable, then `core.pager`
+ configuration, then `$PAGER`, and then finally 'less'.
+
Diagnostics
-----------
You don't exist. Go away!::