From: Jan Engelhardt Date: Sat, 21 Jun 2008 21:45:46 GMT Subject: Re: about c8af1de9 (git status uses pager) Message-ID: In-Reply-To: <7vzlpe8nyo.fsf@gitster.siamese.dyndns.org> On Saturday 2008-06-21 23:42, Junio C Hamano wrote: >"Vegard Nossum" writes: > >> On Sat, Jun 21, 2008 at 11:21 PM, Jan Engelhardt 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.