Re: about c8af1de9 (git status uses pager)
- From
- Jan Engelhardt <jengelh@medozas.de>
- Date
- Jun 21, 2008, 21:45 UTC
- Message-ID
- <alpine.LNX.1.10.0806212343560.18093@fbirervta.pbzchgretzou.qr>
- In-Reply-To
- <7vzlpe8nyo.fsf@gitster.siamese.dyndns.org>
On Saturday 2008-06-21 23:42, Junio C Hamano wrote:
Show 14 quoted lines
>"Vegard Nossum" <vegard.nossum@gmail.com> writes: > >> On Sat, Jun 21, 2008 at 11:21 PM, Jan Engelhardt <jengelh@medozas.de> wrote: >>> >>> Since git 1.5.6, `git status` always invokes a pager, which is really >>> annoying when the output is less than the number of terminal rows >>> available. Can I turn that off somehow or do I need to send a reverting >>> patch? >> >> I think it would work to set PAGER="less -F" (a.k.a. --quit-if-one-screen)? > >Probably better with LESS=FRSX, which is what git uses as a sane default >if nothing is set. >
I went with Vegard's suggestion to change the pager command in ~/.gitconfig, since I have the $LESS environment variable already defined as "-MSi", and I do not want to change that; because if I am going to run less (often at the end of a pipe), I certainly do not want it to just quit on me. So -F in $LESS is a no-no.
Since I need "-MRSi" for git anyhow, tweaking ~/.gitconfig was easy.