for-each-ref: fix %(numparent) and %(parent)
authorJunio C Hamano <gitster@pobox.com>
Tue, 2 Oct 2007 22:09:41 +0000 (15:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Oct 2007 22:12:05 +0000 (15:12 -0700)
The string value of %(numparent) was not returned correctly.
Also %(parent) misbehaved for the root commits (returned garbage)
and merge commits (returned first parent, followed by a space).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found