diff: write prefix to the correct file
Write the prefix for an output line to the same file as the actual content. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Keeping committed
Feb 7, 2013 at 20:15 UTC
3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6
1 file changed
+1
-1
diff.c
+1
-1
@@ -4483,7 +4483,7 @@ void diff_flush(struct diff_options *options)
4483
struct strbuf *msg = NULL;
4484
msg = options->output_prefix(options,
4485
options->output_prefix_data);
4486
- fwrite(msg->buf, msg->len, 1, stdout);
4486
+ fwrite(msg->buf, msg->len, 1, options->file);
4487
}
4488
putc(options->line_termination, options->file);
4489
if (options->stat_sep) {