Skip to content

Commit 06300d9

Browse files
jrngitster
authored andcommitted
git.1: Clarify the behavior of the --paginate option
The --paginate option is meant to negate the effect of an explicit or implicit pager.<cmd> = false setting. Thus it turns the pager on if output is going to a terminal rather than unconditionally. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 64778d2 commit 06300d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Documentation/git.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,10 @@ help ...`.
229229

230230
-p::
231231
--paginate::
232-
Pipe all output into 'less' (or if set, $PAGER).
232+
Pipe all output into 'less' (or if set, $PAGER) if standard
233+
output is a terminal. This overrides the `pager.<cmd>`
234+
configuration options (see the "Configuration Mechanism" section
235+
below).
233236

234237
--no-pager::
235238
Do not pipe git output into a pager.
@@ -401,7 +404,8 @@ people. Here is an example:
401404
------------
402405

403406
Various commands read from the configuration file and adjust
404-
their operation accordingly.
407+
their operation accordingly. See linkgit:git-config[1] for a
408+
list.
405409

406410

407411
Identifier Terminology

0 commit comments

Comments
 (0)