Documentation: improve the example of overriding LESS via core.pager

You can override an option set in the LESS variable by simply prefixing the command line option with `-+`. This is more robust than the previous example if the default LESS options are to ever change. Signed-off-by: Patrick Palka <patrick@parcs.ath.cx> Signed-off-by: Jeff King <peff@peff.net>

Patrick Palka committed Oct 28, 2012 at 16:12 UTC 3a599b832b27eca70bb2956a5a127fc35e0cb233
1 file changed +4 -4
Documentation/config.txt
+4 -4
@@ -538,14 +538,14 @@ core.pager::
538 `LESS` variable to some other value. Alternately,
539 these settings can be overridden on a project or
540 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`
542 environment variable behaviour above, so if you want
543 to override git's default settings this way, you need
544 to be explicit. For example, to disable the S option
545 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`.
549
550 core.whitespace::
551 A comma separated list of common whitespace problems to