git/t/t8001-annotate.sh

16 строки
358 B
Bash
Исходник Обычный вид История

#!/bin/sh
test_description='git annotate'
. ./test-lib.sh
PROG='git annotate'
. "$TEST_DIRECTORY"/annotate-tests.sh
test_expect_success \
'Annotating an old revision works' \
'[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") -eq 2 ] && \
[ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") -eq 2 ]'
test_done