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

Re: [PATCH] git: add -N as a short option for --no-pager

From
Johannes Sixt <j6t@kdbg.org>
Date
Apr 25, 2018, 19:31 UTC
Message-ID
<523dfe75-45a2-d780-2581-1bdc076dd659@kdbg.org>
In-Reply-To
<36d622ac-f07d-7fd9-65dd-94f88b0e2f56@talktalk.net>
Am 25.04.2018 um 11:21 schrieb Phillip Wood:
Show 19 quoted lines
> On 24/04/18 17:59, Johannes Sixt wrote:
>>
>> In modern setups, less, the pager, uses alternate screen to show
>> the content. When it is closed, it switches back to the original
>> screen, and all content is gone.
> 
> Are you setting LESS explicitly in the environment?
> 
>  From the git config man page:
> When the LESS environment variable is unset, Git sets it to FRX (if LESS 
> environment variable is set, Git does not change it at all).
> 
>  From the less man page the X option:
> Disables  sending the termcap initialization and deinitialization 
> strings to the terminal.  This is sometimes desirable if the 
> deinitialization string does something unnecessary, like clearing the 
> screen.
> 
> So with the default setup the output should remain on the screen.

Right. But I have LESS=RS because I do *not* want it to remain on screen by default.

-- Hannes
Previous: Phillip WoodNext: Kaartic Sivaraam
Message 9 of 14 in “git: add -N as a short option for --no-pager”
  1. git: add -N as a short option for --no-pagerJohannes Sixt, Apr 24, 2018
  2. Junio C HamanoApr 25, 2018
  3. Beat Bolli <bbolli@ewanet.ch>Apr 25, 2018
  4. Johannes SixtApr 25, 2018
  5. Johannes SchindelinApr 25, 2018
  6. Johannes SixtApr 25, 2018
  7. Kaartic SivaraamMay 1, 2018
  8. Phillip WoodApr 25, 2018
  9. Johannes SixtApr 25, 2018
  10. Kaartic SivaraamMay 1, 2018
  11. git: add -P as a short option for --no-pagerJohannes Sixt, May 3, 2018
  12. Eric SunshineMay 3, 2018
  13. Junio C HamanoMay 4, 2018
  14. Johannes SchindelinDec 21, 2018

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.