Skip to content

Commit

Permalink
Documentation: clarify pager configuration
Browse files Browse the repository at this point in the history
The unwary user may not know how to disable the -FRSX options.

Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jonathan Nieder authored and Junio C Hamano committed Aug 24, 2008
1 parent 3281808 commit ab54cd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,13 @@ core.editor::
`EDITOR` environment variables and then finally `vi`.

core.pager::
The command that git will use to paginate output. Can be overridden
with the `GIT_PAGER` environment variable.
The command that git will use to paginate output. Can
be overridden with the `GIT_PAGER` environment
variable. Note that git sets the `LESS` environment
variable to `FRSX` if it is unset when it runs the
pager. One can change these settings by setting the
`LESS` variable to some other value or by giving the
`core.pager` option a value such as "`less -+FRSX`".

core.whitespace::
A comma separated list of common whitespace problems to
Expand Down
3 changes: 2 additions & 1 deletion Documentation/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ other
'GIT_PAGER'::
This environment variable overrides `$PAGER`. If it is set
to an empty string or to the value "cat", git will not launch
a pager.
a pager. See also the `core.pager` option in
linkgit:git-config[1].

'GIT_SSH'::
If this environment variable is set then 'git-fetch'
Expand Down

0 comments on commit ab54cd6

Please sign in to comment.