]> git.ipfire.org Git - thirdparty/git.git/blob - t/t8012-blame-colors.sh
builtin/blame: dim uninteresting metadata lines
[thirdparty/git.git] / t / t8012-blame-colors.sh
1 #!/bin/sh
2
3 test_description='colored git blame'
4 . ./test-lib.sh
5
6 PROG='git blame -c'
7 . "$TEST_DIRECTORY"/annotate-tests.sh
8
9 test_expect_success 'colored blame colors contiguous lines' '
10 git -c color.blame.repeatedLines=yellow blame --color-lines --abbrev=12 hello.c >actual.raw &&
11 test_decode_color <actual.raw >actual &&
12 grep "<YELLOW>" <actual >darkened &&
13 grep "(F" darkened > F.expect &&
14 grep "(H" darkened > H.expect &&
15 test_line_count = 2 F.expect &&
16 test_line_count = 3 H.expect
17 '
18
19 test_done