Re: about c8af1de9 (git status uses pager)
On Saturday 2008-06-21 23:45, Jan Engelhardt wrote:
Show 23 quoted lines
>On Saturday 2008-06-21 23:42, Junio C Hamano wrote:
>>"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.
>
I've played with `less -F` for a while now, and there is an inherent
problem with that. Or should I say, xterm.
When less quits, the xterm "screen" blits back to the shell output
that was previously visible, so
git status
with less -F as a pager displays practically *nothing*.
I am aware that this is a less / xterm issue, but I wanted to let
you know.