diff options
author | Jeff King <peff@peff.net> | 2010-11-17 12:04:12 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-17 11:37:06 -0800 |
commit | 9bad7233699e1fcf58e75f1e163499ec24680826 (patch) | |
tree | d6e85cf6685d7a3d88c45702a9aead6c6f99f66e /Documentation/config.txt | |
parent | b2be2f6aeaa8f4af602679e5571d2e916a259d91 (diff) | |
download | git-9bad7233699e1fcf58e75f1e163499ec24680826.tar.gz |
allow command-specific pagers in pager.<cmd>
A user may want different pager settings or even a
different pager for various subcommands (e.g., because they
use different less settings for "log" vs "diff", or because
they have a pager that interprets only log output but not
other commands).
This patch extends the pager.<cmd> syntax to support not
only boolean to-page-or-not-to-page, but also to specify a
pager just for a specific command.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 7f6b2109bd..0f631712b1 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1521,11 +1521,13 @@ pack.packSizeLimit:: supported. pager.<cmd>:: - Allows turning on or off pagination of the output of a - particular git subcommand when writing to a tty. If - `\--paginate` or `\--no-pager` is specified on the command line, - it takes precedence over this option. To disable pagination for - all commands, set `core.pager` or `GIT_PAGER` to `cat`. + If the value is boolean, turns on or off pagination of the + output of a particular git subcommand when writing to a tty. + Otherwise, turns on pagination for the subcommand using the + pager specified by the value of `pager.<cmd>`. If `\--paginate` + or `\--no-pager` is specified on the command line, it takes + precedence over this option. To disable pagination for all + commands, set `core.pager` or `GIT_PAGER` to `cat`. pretty.<name>:: Alias for a --pretty= format string, as specified in |