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