git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: about c8af1de9 (git status uses pager)

From
JEJan Engelhardt <jengelh@medozas.de>
Date
Jun 22, 2008, 09:09 UTC
Message-ID
<alpine.LNX.1.10.0806221107540.15126@fbirervta.pbzchgretzou.qr>
In-Reply-To
<alpine.LNX.1.10.0806212343560.18093@fbirervta.pbzchgretzou.qr>
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.
Previous: Jan EngelhardtNext: Junio C Hamano
Message 5 of 21 in “about c8af1de9 (git status uses pager)”
  1. Jan EngelhardtJun 21, 2008
  2. Vegard NossumJun 21, 2008
  3. Junio C HamanoJun 21, 2008
  4. Jan EngelhardtJun 21, 2008
  5. Jan EngelhardtJun 22, 2008
  6. Junio C HamanoJun 22, 2008
  7. Junio C HamanoJun 22, 2008
  8. Jeff KingJun 23, 2008
  9. Tim StoakesJul 3, 2008
  10. Jeff KingJul 3, 2008
  11. Johannes SchindelinJul 3, 2008
  12. Wincent ColaiutaJul 3, 2008
  13. Jeff KingJul 3, 2008
  14. Wincent ColaiutaJul 3, 2008
  15. Vegard NossumJun 22, 2008
  16. Johannes GilgerJun 21, 2008
  17. Johannes GilgerJun 22, 2008
  18. Dan McGeeJun 26, 2008
  19. Matthieu MoyJun 26, 2008
  20. Wincent ColaiutaJun 26, 2008
  21. Jeff KingJun 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.