fetch-pack: eliminate spurious error messages
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index bd37d9b2c8314e7c39011f35c9a21652ee305331..e6846ca7507aa8a423c5e1f89390fa37723248ff 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -574,6 +574,7 @@ static void emit_rewrite_lines(struct emit_callback *ecb,
        if (!endp) {
                const char *plain = diff_get_color(ecb->color_diff,
                                                   DIFF_PLAIN);
+               putc('\n', ecb->opt->file);
                emit_line_0(ecb->opt, plain, reset, '\\',
                            nneof, strlen(nneof));
        }