2006-03-02 06:23:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='git-annotate'
|
|
|
|
. ./test-lib.sh
|
|
|
|
|
2006-03-05 12:13:34 +01:00
|
|
|
PROG='git annotate'
|
2006-03-06 07:10:26 +01:00
|
|
|
. ../annotate-tests.sh
|
2006-03-02 06:23:37 +01:00
|
|
|
|
2006-07-04 03:30:01 +02:00
|
|
|
test_expect_success \
|
|
|
|
'Annotating an old revision works' \
|
2006-07-04 10:04:24 +02:00
|
|
|
'[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \
|
|
|
|
[ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]'
|
2006-07-04 03:30:01 +02:00
|
|
|
|
|
|
|
|
2006-03-02 06:23:37 +01:00
|
|
|
test_done
|