@matheusbsbs / matheus-bagliano / commits / d53352422b
Fork 0

git-log: do not output excess blank line between commits

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 13, 2006 at 00:26 UTC d53352422b5f2ac3cfb86f5f363d6f167824ac52
1 file changed +1 -1
git.c
+1 -1
@@ -354,7 +354,7 @@ static int cmd_log(int argc, const char **argv, char **envp)
354 prepare_revision_walk(&rev);
355 setup_pager();
356 while ((commit = get_revision(&rev)) != NULL) {
357 - if (commit_format != CMIT_FMT_ONELINE && shown)
357 + if (shown && do_diff && commit_format != CMIT_FMT_ONELINE)
358 putchar('\n');
359 fputs(commit_prefix, stdout);
360 if (abbrev_commit && abbrev)