]> git.ipfire.org Git - thirdparty/git.git/commit - git.c
git: add -P as a short option for --no-pager
authorJohannes Sixt <j6t@kdbg.org>
Thu, 3 May 2018 17:15:08 +0000 (19:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 May 2018 05:35:38 +0000 (14:35 +0900)
commit7213c288187bd9ef1e32e4f86c20c55436f1ae90
tree8f16c0797da9891af7377fcce5fb9b24bc985a38
parent468165c1d8a442994a825f3684528361727cd8c0
git: add -P as a short option for --no-pager

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 more
easily accessible.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
git.c