diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-17 15:08:31 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-17 15:08:31 +0900 |
commit | 433d62fea95fccdd57a81641618f61544d699126 (patch) | |
tree | bddf17ab7322486642d7aeb206005d7c1c6d0831 /t/t7006-pager.sh | |
parent | 4010f1d1b782eb7585e0e0abcefa794bd5ff29a0 (diff) | |
parent | 6be4595edb8e5b616c6e8b9fbc78b0f831fa2a87 (diff) | |
download | git-433d62fea95fccdd57a81641618f61544d699126.tar.gz |
Merge branch 'jk/ui-color-always-to-auto-maint' (early part) into jk/ref-filter-colors-fix-maint
* 'jk/ui-color-always-to-auto-maint' (early part):
color: make "always" the same as "auto" in config
provide --color option for all ref-filter users
t3205: use --color instead of color.branch=always
t3203: drop "always" color test
t6006: drop "always" color config tests
t7502: use diff.noprefix for --verbose test
t7508: use test_terminal for color output
t3701: use test-terminal to collect color output
t4015: prefer --color to -c color.diff=always
test-terminal: set TERM=vt100
Diffstat (limited to 't/t7006-pager.sh')
-rwxr-xr-x | t/t7006-pager.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh index 9128ec5acd..f0f1abd1c2 100755 --- a/t/t7006-pager.sh +++ b/t/t7006-pager.sh @@ -239,7 +239,7 @@ test_expect_success 'no color when stdout is a regular file' ' test_expect_success TTY 'color when writing to a pager' ' rm -f paginated.out && test_config color.ui auto && - test_terminal env TERM=vt100 git log && + test_terminal git log && colorful paginated.out ' @@ -247,7 +247,7 @@ test_expect_success TTY 'colors are suppressed by color.pager' ' rm -f paginated.out && test_config color.ui auto && test_config color.pager false && - test_terminal env TERM=vt100 git log && + test_terminal git log && ! colorful paginated.out ' @@ -266,7 +266,7 @@ test_expect_success 'color when writing to a file intended for a pager' ' test_expect_success TTY 'colors are sent to pager for external commands' ' test_config alias.externallog "!git log" && test_config color.ui auto && - test_terminal env TERM=vt100 git -p externallog && + test_terminal git -p externallog && colorful paginated.out ' |