log: print log entry terminator even if the message is empty
authorAdam Simpkins <adam@adamsimpkins.net>
Tue, 29 Apr 2008 08:33:00 +0000 (01:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 3 May 2008 18:50:41 +0000 (11:50 -0700)
commit9b58bfe8f4ea130a4518f6fbe9927fef78093f1b
tree026fcba7c126e4d06b1a4c303ffeb86ead802a79
parent028656552bc758b192027c25a1143f1c6ca66d64
log: print log entry terminator even if the message is empty

This eliminates a special case in the show_log() function, to help
simplify the terminator semantics.  Now show_log() always prints a
newline after the log entry when use_terminator is set, even if the log
message is empty.

This change should only affect the --pretty=tformat output, since that
was the only way to trigger this special case.

Signed-off-by: Adam Simpkins <adam@adamsimpkins.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c