X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fblame.c;h=4dd4c3f494042c91e2fa481314d2d8d6d61d9c43;hb=82df0ef1c33a077313d29bd1d4692c0fadc29624;hp=10f7eacf6e881cdb54a6b4a4c0aafc5f9751e5a9;hpb=809780b662355a9ded05b450a07bbe79d0d2e26e;p=git.git diff --git a/builtin/blame.c b/builtin/blame.c index 10f7eacf6..4dd4c3f49 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -1589,7 +1589,7 @@ static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent) strcpy(hex, sha1_to_hex(suspect->commit->object.sha1)); printf("%s%c%d %d %d\n", hex, - ent->guilty ? ' ' : '*', // purely for debugging + ent->guilty ? ' ' : '*', /* purely for debugging */ ent->s_lno + 1, ent->lno + 1, ent->num_lines); @@ -1772,7 +1772,7 @@ static int lineno_width(int lines) { int i, width; - for (width = 1, i = 10; i <= lines + 1; width++) + for (width = 1, i = 10; i <= lines; width++) i *= 10; return width; }