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 <lucian.poston@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Lucian Poston committed Mar 20, 2012 at 01:05 UTC aea69a016f5bda67c359e43a3cbfabe923ad0f5a
1 file changed +3 -2
log-tree.c
+3 -2
@@ -570,14 +570,15 @@ int log_tree_diff_flush(struct rev_info *opt)
570 opt->verbose_header &&
571 opt->commit_format != CMIT_FMT_ONELINE) {
572 int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
573 - if ((pch & opt->diffopt.output_format) == pch)
574 - printf("---");
573 if (opt->diffopt.output_prefix) {
574 struct strbuf *msg = NULL;
575 msg = opt->diffopt.output_prefix(&opt->diffopt,
576 opt->diffopt.output_prefix_data);
577 fwrite(msg->buf, msg->len, 1, stdout);
578 }
579 + if ((pch & opt->diffopt.output_format) == pch) {
580 + printf("---");
581 + }
582 putchar('\n');
583 }
584 }