From aea69a016f5bda67c359e43a3cbfabe923ad0f5a Mon Sep 17 00:00:00 2001 From: Lucian Poston Date: Tue, 20 Mar 2012 01:05:34 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- log-tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'log-tree.c') diff --git a/log-tree.c b/log-tree.c index 24c295ea1d..f962203ec5 100644 --- a/log-tree.c +++ b/log-tree.c @@ -570,14 +570,15 @@ int log_tree_diff_flush(struct rev_info *opt) opt->verbose_header && opt->commit_format != CMIT_FMT_ONELINE) { int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH; - if ((pch & opt->diffopt.output_format) == pch) - printf("---"); if (opt->diffopt.output_prefix) { struct strbuf *msg = NULL; msg = opt->diffopt.output_prefix(&opt->diffopt, opt->diffopt.output_prefix_data); fwrite(msg->buf, msg->len, 1, stdout); } + if ((pch & opt->diffopt.output_format) == pch) { + printf("---"); + } putchar('\n'); } } -- cgit v1.2.3