-------------
`pager.config` is only respected when listing configuration, i.e., when
using `--list` or any of the `--get-*` which may return multiple results.
+The default is to use a pager.
[[FILES]]
FILES
}
if (actions & PAGING_ACTIONS)
- setup_auto_pager("config", 0);
+ setup_auto_pager("config", 1);
if (actions == ACTION_LIST) {
check_argc(argc, 0, 0);
! test -e paginated.out
'
-test_expect_success TTY 'git config --get-urlmatch defaults to not paging' '
+test_expect_success TTY 'git config --get-urlmatch defaults to paging' '
rm -f paginated.out &&
test_terminal git -c http."https://foo.com/".bar=foo \
config --get-urlmatch http https://foo.com &&
- ! test -e paginated.out
+ test -e paginated.out
'
test_expect_success TTY 'git config --get-all respects pager.config' '
rm -f paginated.out &&
- test_terminal git -c pager.config config --get-all foo.bar &&
- test -e paginated.out
+ test_terminal git -c pager.config=false config --get-all foo.bar &&
+ ! test -e paginated.out
'
-test_expect_success TTY 'git config --list defaults to not paging' '
+test_expect_success TTY 'git config --list defaults to paging' '
rm -f paginated.out &&
test_terminal git config --list &&
- ! test -e paginated.out
+ test -e paginated.out
'