]> git.ipfire.org Git - thirdparty/git.git/blame - t/t8001-annotate.sh
Merge branch 'zh/difftool-skip-to'
[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
7c3ecb65
RA
7. ./test-lib.sh
8
8752d11d 9PROG='git annotate'
bfdbee98 10. "$TEST_DIRECTORY"/annotate-tests.sh
7c3ecb65 11
e37f39c1 12test_expect_success 'annotate old revision' '
747f6c68 13 git annotate file main >actual &&
e37f39c1 14 awk "{ print \$3; }" <actual >authors &&
4b705f40
JH
15 test 2 = $(grep A <authors | wc -l) &&
16 test 2 = $(grep B <authors | wc -l)
17'
f560069b 18
7c3ecb65 19test_done