From: Junio C Hamano Date: Thu, 13 Apr 2006 07:26:21 +0000 (-0700) Subject: git-log: do not output excess blank line between commits X-Git-Tag: v1.3.0-rc4~13 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d53352422b5f2ac3cfb86f5f363d6f167824ac52;p=git.git git-log: do not output excess blank line between commits Signed-off-by: Junio C Hamano --- diff --git a/git.c b/git.c index 5cb0d320..d6f17db9 100644 --- a/git.c +++ b/git.c @@ -354,7 +354,7 @@ static int cmd_log(int argc, const char **argv, char **envp) prepare_revision_walk(&rev); setup_pager(); while ((commit = get_revision(&rev)) != NULL) { - if (commit_format != CMIT_FMT_ONELINE && shown) + if (shown && do_diff && commit_format != CMIT_FMT_ONELINE) putchar('\n'); fputs(commit_prefix, stdout); if (abbrev_commit && abbrev)