summaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-02-07 21:15:24 +0100
committerJunio C Hamano <gitster@pobox.com>2013-02-12 20:42:07 +0100
commit3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6 (patch)
tree44821c8690d74cafc4730954ae3b625bb01e1652 /diff.c
parentgraph: output padding for merge subsequent parents (diff)
downloadgit-3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6.tar.xz
git-3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6.zip
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>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 732d4c2275..9513134670 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) {