Merge branch 'eb/mail'
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 77c09a87b0742376784d2563221763ffd4c6934e..9e9cfc8b75b7b761980b0d32cb0c516ea3505ba3 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -299,6 +299,7 @@ static void diffstat_consume(void *priv, char *line, unsigned long len)
 
 static const char pluses[] = "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
 static const char minuses[]= "----------------------------------------------------------------------";
+const char mime_boundary_leader[] = "------------";
 
 static void show_stats(struct diffstat_t* data)
 {
@@ -1991,7 +1992,10 @@ void diff_flush(struct diff_options *options)
                if (options->summary)
                        for (i = 0; i < q->nr; i++)
                                diff_summary(q->queue[i]);
-               putchar(options->line_termination);
+               if (options->stat_sep)
+                       fputs(options->stat_sep, stdout);
+               else
+                       putchar(options->line_termination);
        }
        for (i = 0; i < q->nr; i++) {
                struct diff_filepair *p = q->queue[i];