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