Skip to content

Commit aea69a0

Browse files
lucianpostongitster
authored andcommitted
log --graph --stat: three-dash separator should come after graph lines
Output from "git log --graph --stat -p" emits the three-dash separator line before the graph that shows ancestry lines. The separator should come after the ancestry lines just like all the other output. Signed-off-by: Lucian Poston <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d909e07 commit aea69a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

log-tree.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,15 @@ int log_tree_diff_flush(struct rev_info *opt)
570570
opt->verbose_header &&
571571
opt->commit_format != CMIT_FMT_ONELINE) {
572572
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
573-
if ((pch & opt->diffopt.output_format) == pch)
574-
printf("---");
575573
if (opt->diffopt.output_prefix) {
576574
struct strbuf *msg = NULL;
577575
msg = opt->diffopt.output_prefix(&opt->diffopt,
578576
opt->diffopt.output_prefix_data);
579577
fwrite(msg->buf, msg->len, 1, stdout);
580578
}
579+
if ((pch & opt->diffopt.output_format) == pch) {
580+
printf("---");
581+
}
581582
putchar('\n');
582583
}
583584
}

0 commit comments

Comments
 (0)