diff options
author | Lucian Poston <lucian.poston@gmail.com> | 2012-03-20 01:05:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-03-20 12:08:30 -0700 |
commit | aea69a016f5bda67c359e43a3cbfabe923ad0f5a (patch) | |
tree | e7329235377e1ea89dd7c60d1062f8d60df9d0bd /log-tree.c | |
parent | d909e0761c234b28aac77566368c1ee5451a856a (diff) | |
download | git-aea69a016f5bda67c359e43a3cbfabe923ad0f5a.tar.gz |
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>
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
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'); } } |