Code

Fix "--pretty=format:" for parent related items.
authorJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 20:33:37 +0000 (13:33 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 28 Mar 2007 20:44:04 +0000 (13:44 -0700)
commit542e165cdc4fbebbfe7c8954ca1aa1d4162e38cb
treef085406239e17030fdfea420a208a3d6e0833096
parent9c880b3ea56a7ff2f66dcf12eb2351f0f51a54ef
Fix "--pretty=format:" for parent related items.

There are two breakages in the %P/%p interpolation.  It appended
an excess SP at the end of the list, and it gave uninitialized
contents of a buffer on the stack for root commits.

This fixes it, while updating the t6006 test which expected the
wrong output.

Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.c
t/t6006-rev-list-format.sh [changed mode: 0644->0755]