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

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 21, 2018, 12:04 UTC
Message-ID
<nycvar.QRO.7.76.6.1812211303270.41@tvgsbejvaqbjf.bet>
In-Reply-To
<23493ba1-1704-1e8c-f448-95540a36f886@kdbg.org>
Hi Hannes,
On Thu, 3 May 2018, Johannes Sixt wrote:
Show 18 quoted lines
> It is possible to configure 'less', the pager, to use an alternate
> screen to show the content, for example, by setting LESS=RS in the
> environment. When it is closed in this configuration, it switches
> back to the original screen, and all content is gone.
> 
> It is not uncommon to request that the output remains visible in
> the terminal. For this, the option --no-pager can be used. But
> it is a bit cumbersome to type, even when command completion is
> available. Provide a short option, -P, to make the option easier
> accessible.
> 
> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
> ---
>  Given the positive feedback, I resurrect the patch.
> 
>  Changes since v1:
>  - Use -P instead of -N
>  - Commit message changed as proposed by Kaartic

Just a quick note, as mine was a vocal voice against this patch: I find myself using this more and more. So I was wrong to object, and I apologize.

Thank you, Dscho

Previous: Junio C Hamano
Message 14 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.