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:30 UTC
Message-ID
<2411e97e-bda2-869e-956e-12871761c4cc@kdbg.org>
In-Reply-To
<nycvar.QRO.7.76.6.1804250938370.4978@tvgsbejvaqbjf.bet>
Am 25.04.2018 um 09:41 schrieb Johannes Schindelin:
Show 22 quoted lines
> Hi Hannes,
> 
> On Wed, 25 Apr 2018, Johannes Sixt wrote:
> 
>> Am 25.04.2018 um 02:05 schrieb Junio C Hamano:
>>> Johannes Sixt <j6t@kdbg.org> writes:
>>>> It is not uncommon to request that the output remains visible in
>>>> the terminal.
> 
> I ran `git log` and then hit `q`, and the latest screen contents were
> still visible in all of these scenarios:
> 
> - in a Linux VM via SSH client
> 
> - in Git Bash on Windows
> 
> - in Git CMD on Windows
> 
> Granted, this is only the latest screen, but that is usually good enough
> here.
> 
> Is anything different happening in your setups?

I have LESS=RS in my environment, because I do want that the alternate screen is used by the pager. Nevertheless, occasionally I want git's output to remain visible.

-- Hannes
Previous: Johannes SchindelinNext: Kaartic Sivaraam
Message 6 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.