]>
Commit | Line | Data |
---|---|---|
7c3ecb65 RA |
1 | #!/bin/sh |
2 | ||
5be60078 | 3 | test_description='git annotate' |
747f6c68 | 4 | GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main |
334afbc7 JS |
5 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME |
6 | ||
7c3ecb65 RA |
7 | . ./test-lib.sh |
8 | ||
8752d11d | 9 | PROG='git annotate' |
bfdbee98 | 10 | . "$TEST_DIRECTORY"/annotate-tests.sh |
7c3ecb65 | 11 | |
e37f39c1 | 12 | test_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 | 19 | test_done |