2006-03-02 08:23:37 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-07-03 09:52:14 +04:00
|
|
|
test_description='git annotate'
|
2006-03-02 08:23:37 +03:00
|
|
|
. ./test-lib.sh
|
|
|
|
|
2006-03-05 14:13:34 +03:00
|
|
|
PROG='git annotate'
|
2008-08-08 13:26:28 +04:00
|
|
|
. "$TEST_DIRECTORY"/annotate-tests.sh
|
2006-03-02 08:23:37 +03:00
|
|
|
|
2013-07-18 01:25:28 +04:00
|
|
|
test_expect_success 'annotate old revision' '
|
|
|
|
git annotate file master >actual &&
|
|
|
|
awk "{ print \$3; }" <actual >authors &&
|
2011-03-30 23:22:05 +04:00
|
|
|
test 2 = $(grep A <authors | wc -l) &&
|
|
|
|
test 2 = $(grep B <authors | wc -l)
|
|
|
|
'
|
2006-07-04 05:30:01 +04:00
|
|
|
|
2006-03-02 08:23:37 +03:00
|
|
|
test_done
|