summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-23 19:57:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-23 19:57:21 (GMT)
commit31a199a76e086f8931237b352ddcb7ba2b617481 (patch)
tree5b50cd44bc371037466a0df32fe4182fbb12e0e3 /diff.c
parentba8e6326f16748d67fbeda65ffde4729760c64f0 (diff)
parente2c59667ed0a495998b911628de5389a0ee9a728 (diff)
downloadgit-31a199a76e086f8931237b352ddcb7ba2b617481.zip
git-31a199a76e086f8931237b352ddcb7ba2b617481.tar.gz
git-31a199a76e086f8931237b352ddcb7ba2b617481.tar.bz2
Merge branch 'lp/maint-diff-three-dash-with-graph'
"log -p --graph" used with "--stat" had a few formatting error. By Lucian Poston * lp/maint-diff-three-dash-with-graph: t4202: add test for "log --graph --stat -p" separator lines log --graph: fix break in graph lines log --graph --stat: three-dash separator should come after graph lines
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index 5d6349f..22288b0 100644
--- a/diff.c
+++ b/diff.c
@@ -4414,6 +4414,12 @@ void diff_flush(struct diff_options *options)
if (output_format & DIFF_FORMAT_PATCH) {
if (separator) {
+ if (options->output_prefix) {
+ struct strbuf *msg = NULL;
+ msg = options->output_prefix(options,
+ options->output_prefix_data);
+ fwrite(msg->buf, msg->len, 1, stdout);
+ }
putc(options->line_termination, options->file);
if (options->stat_sep) {
/* attach patch instead of inline */