path: root/Documentation/git.txt
diff options
authorJohannes Sixt <>2018-05-03 17:15:08 (GMT)
committerJunio C Hamano <>2018-05-04 05:35:38 (GMT)
commit7213c288187bd9ef1e32e4f86c20c55436f1ae90 (patch)
tree8f16c0797da9891af7377fcce5fb9b24bc985a38 /Documentation/git.txt
parent468165c1d8a442994a825f3684528361727cd8c0 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git.txt')
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 4767860..c662f41 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -11,7 +11,7 @@ SYNOPSIS
'git' [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
- [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
+ [-p|--paginate|-P|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
@@ -103,6 +103,7 @@ ...`) sets `` to the empty string which `git config
configuration options (see the "Configuration Mechanism" section
Do not pipe Git output into a pager.