Code

git-notes: fix printing of multi-line notes
authorTor Arne Vestbø <tavestbo@trolltech.com>
Tue, 13 Jan 2009 19:57:16 +0000 (20:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2009 22:54:41 +0000 (14:54 -0800)
commit22a3d060937072b0f197a8084af879c753c68fe7
tree9675025a5567dd28d27b4bdad0ccf8320a085cc9
parentbb1dff9def343a7d513eea8f4eaa5fd7d5d3fc5f
git-notes: fix printing of multi-line notes

The line length was read from the same position every time,
causing mangled output when printing notes with multiple lines.

Also, adding new-line manually for each line ensures that we
get a new-line between commits, matching git-log for commits
without notes.

Signed-off-by: Tor Arne Vestbø <tavestbo@trolltech.com>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c
t/t3301-notes.sh