2006-03-02 13:23:37 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='git-annotate'
|
|
|
|
. ./test-lib.sh
|
|
|
|
|
2006-03-05 19:13:34 +08:00
|
|
|
PROG='git annotate'
|
2006-03-06 14:10:26 +08:00
|
|
|
. ../annotate-tests.sh
|
2006-03-02 13:23:37 +08:00
|
|
|
|
2006-07-04 09:30:01 +08:00
|
|
|
test_expect_success \
|
|
|
|
'Annotating an old revision works' \
|
2006-07-04 16:04:24 +08: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 09:30:01 +08:00
|
|
|
|
|
|
|
|
2006-03-02 13:23:37 +08:00
|
|
|
test_done
|