Merge branch 'cb/maint-report-mount-point-correctly-in-setup'
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 5d6349feb3f8f9483c463961e526767e2f81e4c9..22288b0106258e4f2c170f9e51dbf72f563179bd 100644 (file)
--- 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 */