author | Erik Faye-Lund <kusmabite@googlemail.com> | |
Sun, 21 Mar 2010 14:40:16 +0000 (15:40 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 21 Mar 2010 18:44:27 +0000 (11:44 -0700) | ||
commit | 1fb5fdd25f018480b48f6a74f06bad7e04866440 | |
tree | 7cf30b98f099f3d047dd2620c6f06085045df71d | tree | snapshot |
parent | 8fe5d87622a4268079bf1e5738474f85d4e5c3bc | commit | diff |
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>
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 | diff | blob | history | |
t/t6006-rev-list-format.sh | diff | blob | history |