Skip to content

Commit

Permalink
annotate: Support annotation of files on other revisions.
Browse files Browse the repository at this point in the history
This is a bug fix, and cleans up one or two other things spotted during the
course of tracking down the main bug here.

Also, the test-suite is updated to reflect this case.

Signed-off-by: Ryan Anderson <ryan@michonline.com>
(cherry picked from 2f7554b4db3ab2c2d3866b160245c91c9236fc9a commit)
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Ryan Anderson authored and Junio C Hamano committed Jul 4, 2006
1 parent 12f6c30 commit f560069
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/t8001-annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ test_description='git-annotate'
PROG='git annotate'
. ../annotate-tests.sh

test_expect_success \
'Annotating an old revision works' \
'[ $(git annotate file master | awk "{print \$3}" | grep -c "^A$") == 2 ] && \
[ $(git annotate file master | awk "{print \$3}" | grep -c "^B$") == 2 ]'


test_done

0 comments on commit f560069

Please sign in to comment.