From: Luck, Tony Date: Thu, 2 Mar 2006 23:27:31 +0000 (-0800) Subject: annotate should number lines starting with 1 X-Git-Tag: v1.3.0-rc1~61^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c6d4217ebc15aea283050d816f3c616eebb9f477;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-annotate.perl b/git-annotate.perl index 08d479f4b..d93ee19c7 100755 --- a/git-annotate.perl +++ b/git-annotate.perl @@ -128,7 +128,7 @@ foreach my $l (@filelines) { } printf("%s\t(%10s\t%10s\t%d)%s\n", $rev, $committer, - format_date($date), $i++, $output); + format_date($date), ++$i, $output); } sub init_claim {