summaryrefslogtreecommitdiff
path: root/builtin/config.c
diff options
context:
space:
mode:
authorLibravatar Martin Ågren <martin.agren@gmail.com>2018-02-21 19:51:44 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-02-21 14:27:30 -0800
commitc0e9f5be873d7c6a5df928f167ec1b27027efb45 (patch)
tree71b1b97db80b4b880a0145a885d896036d5fd6ff /builtin/config.c
parentconfig: respect `pager.config` in list/get-mode only (diff)
downloadtgif-c0e9f5be873d7c6a5df928f167ec1b27027efb45.tar.xz
config: change default of `pager.config` to "on"
This is similar to ff1e72483 (tag: change default of `pager.tag` to "on", 2017-08-02) and is safe now that we do not consider `pager.config` at all when we are not listing or getting configuration. This change will help with listing large configurations, but will not hurt users of `git config --edit` as it would have before the previous commit. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/config.c')
-rw-r--r--builtin/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/config.c b/builtin/config.c
index a732d9b56c..01169dd628 100644
--- a/builtin/config.c
+++ b/builtin/config.c
@@ -602,7 +602,7 @@ int cmd_config(int argc, const char **argv, const char *prefix)
}
if (actions & PAGING_ACTIONS)
- setup_auto_pager("config", 0);
+ setup_auto_pager("config", 1);
if (actions == ACTION_LIST) {
check_argc(argc, 0, 0);