]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | test_description='git annotate' | |
4 | . ./test-lib.sh | |
5 | ||
6 | PROG='git annotate' | |
7 | . "$TEST_DIRECTORY"/annotate-tests.sh | |
8 | ||
9 | test_expect_success 'Annotating an old revision works' ' | |
10 | git annotate file master >result && | |
11 | awk "{ print \$3; }" <result >authors && | |
12 | test 2 = $(grep A <authors | wc -l) && | |
13 | test 2 = $(grep B <authors | wc -l) | |
14 | ' | |
15 | ||
16 | test_done |