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