git-log: do not output excess blank line between commits
Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
8c989ec528
commit
d53352422b
2
git.c
2
git.c
|
@ -354,7 +354,7 @@ static int cmd_log(int argc, const char **argv, char **envp)
|
||||||
prepare_revision_walk(&rev);
|
prepare_revision_walk(&rev);
|
||||||
setup_pager();
|
setup_pager();
|
||||||
while ((commit = get_revision(&rev)) != NULL) {
|
while ((commit = get_revision(&rev)) != NULL) {
|
||||||
if (commit_format != CMIT_FMT_ONELINE && shown)
|
if (shown && do_diff && commit_format != CMIT_FMT_ONELINE)
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
fputs(commit_prefix, stdout);
|
fputs(commit_prefix, stdout);
|
||||||
if (abbrev_commit && abbrev)
|
if (abbrev_commit && abbrev)
|
||||||
|
|
Loading…
Reference in New Issue