summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2010-05-26 07:08:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-01 01:00:21 (GMT)
commit81bd1b2a96ecc12dcc72fc2b22aa5b7691186685 (patch)
treea69b2506e515a41ec4cc7203362d2003898dfe39 /log-tree.c
parenta3c158d4a58b17c1e4a8d3f793344beee21d3a4c (diff)
downloadgit-81bd1b2a96ecc12dcc72fc2b22aa5b7691186685.zip
git-81bd1b2a96ecc12dcc72fc2b22aa5b7691186685.tar.gz
git-81bd1b2a96ecc12dcc72fc2b22aa5b7691186685.tar.bz2
Output the graph columns at the end of the commit message
There is an empty line between the commit message and the diff output. Add the graph columns as prefix of this line. Signed-off-by: Bo Yang <struggleyb.nku@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index d3ae969..2e2be7c 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -469,6 +469,12 @@ int log_tree_diff_flush(struct rev_info *opt)
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);
+ }
putchar('\n');
}
}