]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | test_description='git annotate' | |
4 | GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main | |
5 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME | |
6 | ||
7 | TEST_CREATE_REPO_NO_TEMPLATE=1 | |
8 | . ./test-lib.sh | |
9 | ||
10 | PROG='git annotate' | |
11 | . "$TEST_DIRECTORY"/annotate-tests.sh | |
12 | ||
13 | test_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 | ||
20 | test_done |