Skip to content

Commit

Permalink
annotate should number lines starting with 1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luck, Tony authored and Junio C Hamano committed Mar 3, 2006
1 parent ce4c8b2 commit c6d4217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-annotate.perl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ()
}

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 {
Expand Down

0 comments on commit c6d4217

Please sign in to comment.