summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorLucian Poston <lucian.poston@gmail.com>2012-03-20 08:05:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-03-20 19:08:30 (GMT)
commitaea69a016f5bda67c359e43a3cbfabe923ad0f5a (patch)
treee7329235377e1ea89dd7c60d1062f8d60df9d0bd /log-tree.c
parentd909e0761c234b28aac77566368c1ee5451a856a (diff)
downloadgit-aea69a016f5bda67c359e43a3cbfabe923ad0f5a.zip
git-aea69a016f5bda67c359e43a3cbfabe923ad0f5a.tar.gz
git-aea69a016f5bda67c359e43a3cbfabe923ad0f5a.tar.bz2
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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/log-tree.c b/log-tree.c
index 24c295e..f962203 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');
}
}