diff options
author | Luck, Tony <tony.luck@intel.com> | 2006-03-02 15:27:31 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-03 15:09:04 -0800 |
commit | c6d4217ebc15aea283050d816f3c616eebb9f477 (patch) | |
tree | 2b195a99c207120beab22a5ff35b288b95e87f16 | |
parent | ce4c8b24a1efcf155c076d54a7e239251504f669 (diff) | |
download | git-c6d4217ebc15aea283050d816f3c616eebb9f477.tar.gz |
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>
-rwxr-xr-x | git-annotate.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-annotate.perl b/git-annotate.perl index 08d479f4b9..d93ee19c7e 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 { |