20 lines
506 B
Bash
20 lines
506 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
test_description='colored git blame'
|
||
|
. ./test-lib.sh
|
||
|
|
||
|
PROG='git blame -c'
|
||
|
. "$TEST_DIRECTORY"/annotate-tests.sh
|
||
|
|
||
|
test_expect_success 'colored blame colors contiguous lines' '
|
||
|
git -c color.blame.repeatedLines=yellow blame --color-lines --abbrev=12 hello.c >actual.raw &&
|
||
|
test_decode_color <actual.raw >actual &&
|
||
|
grep "<YELLOW>" <actual >darkened &&
|
||
|
grep "(F" darkened > F.expect &&
|
||
|
grep "(H" darkened > H.expect &&
|
||
|
test_line_count = 2 F.expect &&
|
||
|
test_line_count = 3 H.expect
|
||
|
'
|
||
|
|
||
|
test_done
|