rev-list: fix --pretty=oneline with empty message
commit1fb5fdd25f018480b48f6a74f06bad7e04866440
authorErik Faye-Lund <kusmabite@googlemail.com>
Sun, 21 Mar 2010 14:40:16 +0000 (21 15:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 21 Mar 2010 18:44:27 +0000 (21 11:44 -0700)
tree7cf30b98f099f3d047dd2620c6f06085045df71d
parent8fe5d87622a4268079bf1e5738474f85d4e5c3bc
rev-list: fix --pretty=oneline with empty message

55246aa (Dont use "<unknown>" for placeholders and suppress printing
of empty user formats) introduced a check to prevent empty
user-formats from being printed. This test didn't take empty commit
messages into account, and prevented the line-termination from being
output. This lead to multiple commits on a single line.

Correct it by guarding the check with a check for user-format. A
similar correction for the --graph code-path has been included.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-list.c
t/t6006-rev-list-format.sh