aboutsummaryrefslogtreecommitdiff
path: root/git-annotate.perl
diff options
context:
space:
mode:
authorLuck, Tony <tony.luck@intel.com>2006-03-02 15:27:31 -0800
committerJunio C Hamano <junkio@cox.net>2006-03-03 15:09:04 -0800
commitc6d4217ebc15aea283050d816f3c616eebb9f477 (patch)
tree2b195a99c207120beab22a5ff35b288b95e87f16 /git-annotate.perl
parentce4c8b24a1efcf155c076d54a7e239251504f669 (diff)
downloadgit-c6d4217ebc15aea283050d816f3c616eebb9f477.tar.gz
git-c6d4217ebc15aea283050d816f3c616eebb9f477.tar.xz
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>
Diffstat (limited to 'git-annotate.perl')
-rwxr-xr-xgit-annotate.perl2
1 files changed, 1 insertions, 1 deletions
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 {