@matheusbsbs / matheus-bagliano / commits / c6d4217ebc
Fork 0

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 <tony.luck@intel.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Luck, Tony committed Mar 2, 2006 at 15:27 UTC c6d4217ebc15aea283050d816f3c616eebb9f477
1 file changed +1 -1
git-annotate.perl
+1 -1
@@ -128,7 +128,7 @@ foreach my $l (@filelines) {
128 }
129
130 printf("%s\t(%10s\t%10s\t%d)%s\n", $rev, $committer,
131 - format_date($date), $i++, $output);
131 + format_date($date), ++$i, $output);
132 }
133
134 sub init_claim {