diff options
author | Bo Yang <struggleyb.nku@gmail.com> | 2010-05-26 15:08:03 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-05-31 18:00:21 -0700 |
commit | 81bd1b2a96ecc12dcc72fc2b22aa5b7691186685 (patch) | |
tree | a69b2506e515a41ec4cc7203362d2003898dfe39 /log-tree.c | |
parent | a3c158d4a58b17c1e4a8d3f793344beee21d3a4c (diff) | |
download | git-81bd1b2a96ecc12dcc72fc2b22aa5b7691186685.tar.gz |
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.c | 6 |
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'); } } |