Skip to content

Commit 0d26051

Browse files
committed
Merge branch 'pp/maint-doc-pager-config'
* pp/maint-doc-pager-config: Documentation: improve the example of overriding LESS via core.pager
2 parents d0c6c17 + 3a599b8 commit 0d26051

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/config.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,14 @@ core.pager::
538538
`LESS` variable to some other value. Alternately,
539539
these settings can be overridden on a project or
540540
global basis by setting the `core.pager` option.
541-
Setting `core.pager` has no affect on the `LESS`
541+
Setting `core.pager` has no effect on the `LESS`
542542
environment variable behaviour above, so if you want
543543
to override git's default settings this way, you need
544544
to be explicit. For example, to disable the S option
545545
in a backward compatible manner, set `core.pager`
546-
to `less -+$LESS -FRX`. This will be passed to the
547-
shell by git, which will translate the final command to
548-
`LESS=FRSX less -+FRSX -FRX`.
546+
to `less -+S`. This will be passed to the shell by
547+
git, which will translate the final command to
548+
`LESS=FRSX less -+S`.
549549

550550
core.whitespace::
551551
A comma separated list of common whitespace problems to

0 commit comments

Comments
 (0)