summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 93feb4b)
raw | patch | inline | side by side (parent: 93feb4b)
author | Chris Frey <cdfrey@foursquare.net> | |
Wed, 24 Sep 2008 23:21:28 +0000 (19:21 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 26 Sep 2008 14:55:30 +0000 (07:55 -0700) |
The process of overriding the default LESS options using only
git-specific methods is rather obscure. Show the end user how
to do it in a step-by-step manner.
Signed-off-by: Chris Frey <cdfrey@foursquare.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-specific methods is rather obscure. Show the end user how
to do it in a step-by-step manner.
Signed-off-by: Chris Frey <cdfrey@foursquare.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Documentation/config.txt | patch | blob | history |
index 3727239891321a52d16fa7f9ed73bf172b758c48..87b028fbc1817c9c641e5fe03aab641e3bd5eb63 100644 (file)
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
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`".
+ `LESS` variable to some other value. Alternately,
+ these settings can be overridden on a project or
+ global basis by setting the `core.pager` option.
+ Setting `core.pager` has no affect on the `LESS`
+ environment variable behaviour above, so if you want
+ to override git's default settings this way, you need
+ to be explicit. For example, to disable the S option
+ in a backward compatible manner, set `core.pager`
+ to "`less -+$LESS -FRX`". This will be passed to the
+ shell by git, which will translate the final command to
+ "`LESS=FRSX less -+FRSX -FRX`".
core.whitespace::
A comma separated list of common whitespace problems to