]> git.ipfire.org Git - thirdparty/git.git/blame - t/t8001-annotate.sh
The seventh batch
[thirdparty/git.git] / t / t8001-annotate.sh
CommitLineData
7c3ecb65
RA
1#!/bin/sh
2
5be60078 3test_description='git annotate'
747f6c68 4GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
334afbc7
JS
5export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
93e02b6e 7TEST_CREATE_REPO_NO_TEMPLATE=1
7c3ecb65
RA
8. ./test-lib.sh
9
8752d11d 10PROG='git annotate'
bfdbee98 11. "$TEST_DIRECTORY"/annotate-tests.sh
7c3ecb65 12
e37f39c1 13test_expect_success 'annotate old revision' '
747f6c68 14 git annotate file main >actual &&
e37f39c1 15 awk "{ print \$3; }" <actual >authors &&
4b705f40
JH
16 test 2 = $(grep A <authors | wc -l) &&
17 test 2 = $(grep B <authors | wc -l)
18'
f560069b 19
7c3ecb65 20test_done