Skip to content

Commit c6d4217

Browse files
aeglJunio C Hamano
authored andcommitted
annotate should number lines starting with 1
C programmers are well used to counting from zero, but every other text file tool starts counting from 1. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ce4c8b2 commit c6d4217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-annotate.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ ()
128128
}
129129

130130
printf("%s\t(%10s\t%10s\t%d)%s\n", $rev, $committer,
131-
format_date($date), $i++, $output);
131+
format_date($date), ++$i, $output);
132132
}
133133

134134
sub init_claim {

0 commit comments

Comments
 (0)