git-svn: rebuild convenience and bugfixes
[git.git] / diff.c
diff --git a/diff.c b/diff.c
index 77c09a8..9e9cfc8 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];