]> git.ipfire.org Git - thirdparty/git.git/blame_incremental - t/t8001-annotate.sh
The 20th batch
[thirdparty/git.git] / t / t8001-annotate.sh
... / ...
CommitLineData
1#!/bin/sh
2
3test_description='git annotate'
4GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
5export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
6
7TEST_CREATE_REPO_NO_TEMPLATE=1
8. ./test-lib.sh
9
10PROG='git annotate'
11. "$TEST_DIRECTORY"/annotate-tests.sh
12
13test_expect_success 'annotate old revision' '
14 git annotate file main >actual &&
15 awk "{ print \$3; }" <actual >authors &&
16 test 2 = $(grep A <authors | wc -l) &&
17 test 2 = $(grep B <authors | wc -l)
18'
19
20test_done