Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sr/blame-incomplete' into maint
author
Junio C Hamano
<gitster@pobox.com>
Mon, 16 Nov 2009 07:07:07 +0000
(23:07 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 16 Nov 2009 07:07:07 +0000
(23:07 -0800)
* sr/blame-incomplete:
blame: make sure that the last line ends in an LF
builtin-blame.c
patch
|
blob
|
history
raw
(from parent 1:
6dbdba0
)
diff --git
a/builtin-blame.c
b/builtin-blame.c
index 7512773b401255e76aadd5be6e561432d7d60772..dd16b2229763addfba8f02f3d9b3c42dcb995935 100644
(file)
--- a/
builtin-blame.c
+++ b/
builtin-blame.c
@@
-1604,6
+1604,9
@@
static void emit_porcelain(struct scoreboard *sb, struct blame_entry *ent)
} while (ch != '\n' &&
cp < sb->final_buf + sb->final_buf_size);
}
+
+ if (sb->final_buf_size && cp[-1] != '\n')
+ putchar('\n');
}
static void emit_other(struct scoreboard *sb, struct blame_entry *ent, int opt)
@@
-1667,6
+1670,9
@@
static void emit_other(struct scoreboard *sb, struct blame_entry *ent, int opt)
} while (ch != '\n' &&
cp < sb->final_buf + sb->final_buf_size);
}
+
+ if (sb->final_buf_size && cp[-1] != '\n')
+ putchar('\n');
}
static void output(struct scoreboard *sb, int option)