From c6d4217ebc15aea283050d816f3c616eebb9f477 Mon Sep 17 00:00:00 2001 From: "Luck, Tony" Date: Thu, 2 Mar 2006 15:27:31 -0800 Subject: [PATCH] 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 --- git-annotate.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.26.2