Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <struggleyb.nku@gmail.com>2010-05-26 11:08:03 +0400
committerJunio C Hamano <gitster@pobox.com>2010-06-01 05:00:21 +0400
commit81bd1b2a96ecc12dcc72fc2b22aa5b7691186685 (patch)
treea69b2506e515a41ec4cc7203362d2003898dfe39
parenta3c158d4a58b17c1e4a8d3f793344beee21d3a4c (diff)
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>
-rw-r--r--log-tree.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index d3ae969f60..2e2be7c40f 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');
}
}