t / t8012-blame-colors.shon commit builtin/blame: dim uninteresting metadata lines (cdc2d5f)
   1#!/bin/sh
   2
   3test_description='colored git blame'
   4. ./test-lib.sh
   5
   6PROG='git blame -c'
   7. "$TEST_DIRECTORY"/annotate-tests.sh
   8
   9test_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
  19test_done