From 3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Thu, 7 Feb 2013 20:15:24 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'diff.c') diff --git a/diff.c b/diff.c index 732d4c227..951313467 100644 --- a/diff.c +++ b/diff.c @@ -4483,7 +4483,7 @@ void diff_flush(struct diff_options *options) struct strbuf *msg = NULL; msg = options->output_prefix(options, options->output_prefix_data); - fwrite(msg->buf, msg->len, 1, stdout); + fwrite(msg->buf, msg->len, 1, options->file); } putc(options->line_termination, options->file); if (options->stat_sep) { -- cgit v1.2.1