3 test_description
='git annotate'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
10 .
"$TEST_DIRECTORY"/annotate-tests.sh
12 test_expect_success
'annotate old revision' '
13 git annotate file main >actual &&
14 awk "{ print \$3; }" <actual >authors &&
15 test 2 = $(grep A <authors | wc -l) &&
16 test 2 = $(grep B <authors | wc -l)