Re: [PATCH] doc: add more examples of overriding LESS in core.pager
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Oct 5, 2026, 23:59 UTC
- Message-ID
- <asQ56mv3VbiYmtwk@fruit.crustytoothpaste.net>
- In-Reply-To
- <20261002234203.4064847-1-tmz@pobox.com>
On 2026-10-02 at 23:41:52, Todd Zullinger wrote:
Show 9 quoted lines
> +Another way to deactivate an option is prefixing `core.pager` with > +`LESS="RX"` to remove `-F` or `LESS=""` to override all options. > +This is useful if the `core.pager` command eventually runs `less` or > +a command which respects the `LESS` environment variable but lacks > +command line options to override `LESS` options. > ++ > +One can specifically activate some flags for particular commands: for > +example, setting `pager.blame` to `less -S` enables line truncation > +only for `git blame`.
Sure, this seems like an improvement. I'm not very particular on the wording, but it's good that folks have the information that they need.
-- brian m. carlson (they/them) Toronto, Ontario, CA