Merge branch 'ef/maint-empty-commit-log'
* ef/maint-empty-commit-log: rev-list: fix --pretty=oneline with empty message
This commit is contained in:
@ -133,9 +133,12 @@ static void show_commit(struct commit *commit, void *data)
|
||||
*/
|
||||
if (graph_show_remainder(revs->graph))
|
||||
putchar('\n');
|
||||
if (revs->commit_format == CMIT_FMT_ONELINE)
|
||||
putchar('\n');
|
||||
}
|
||||
} else {
|
||||
if (buf.len)
|
||||
if (revs->commit_format != CMIT_FMT_USERFORMAT ||
|
||||
buf.len)
|
||||
printf("%s%c", buf.buf, info->hdr_termination);
|
||||
}
|
||||
strbuf_release(&buf);
|
||||
|
Reference in New Issue
Block a user