aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-18 11:16:57 -0700
committerJunio C Hamano <gitster@pobox.com>2010-06-18 11:16:57 -0700
commit98ad90fbab90a423ca835956d3121c60db2eb218 (patch)
tree8e030231c26a2e42ebf366cd58c318a34dd72724 /log-tree.c
parente09151281ded5e05ee64e67e5d20529953c23b65 (diff)
parent4297c0aeb5cc6b9c1c87d770c91e09ac2a837320 (diff)
downloadgit-98ad90fbab90a423ca835956d3121c60db2eb218.tar.gz
git-98ad90fbab90a423ca835956d3121c60db2eb218.tar.xz
Merge branch 'by/diff-graph'
* by/diff-graph: Make --color-words work well with --graph graph.c: register a callback for graph output Emit a whole line in one go diff.c: Output the text graph padding before each diff line Output the graph columns at the end of the commit message Add a prefix output callback to diff output Conflicts: diff.c
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 d3ae969f6..2e2be7c40 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');
}
}