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/t3205-branch-color.sh | |
parent | Git 2.14.2 (diff) | |
parent | color: make "always" the same as "auto" in config (diff) | |
download | tgif-433d62fea95fccdd57a81641618f61544d699126.tar.xz |
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/t3205-branch-color.sh')
-rwxr-xr-x | t/t3205-branch-color.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/t3205-branch-color.sh b/t/t3205-branch-color.sh index 9343550f50..4f1e16bb44 100755 --- a/t/t3205-branch-color.sh +++ b/t/t3205-branch-color.sh @@ -12,7 +12,6 @@ test_expect_success 'set up some sample branches' ' # choose non-default colors to make sure config # is taking effect test_expect_success 'set up some color config' ' - git config color.branch always && git config color.branch.local blue && git config color.branch.remote yellow && git config color.branch.current cyan @@ -24,7 +23,7 @@ test_expect_success 'regular output shows colors' ' <BLUE>other<RESET> <YELLOW>remotes/origin/master<RESET> EOF - git branch -a >actual.raw && + git branch --color -a >actual.raw && test_decode_color <actual.raw >actual && test_cmp expect actual ' @@ -36,7 +35,7 @@ test_expect_success 'verbose output shows colors' ' <BLUE>other <RESET> $oid foo <YELLOW>remotes/origin/master<RESET> $oid foo EOF - git branch -v -a >actual.raw && + git branch --color -v -a >actual.raw && test_decode_color <actual.raw >actual && test_cmp expect actual ' |