diff options
author | John Keeping <john@keeping.me.uk> | 2013-02-07 20:15:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-12 11:42:07 -0800 |
commit | 3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6 (patch) | |
tree | 44821c8690d74cafc4730954ae3b625bb01e1652 /diff.c | |
parent | a48ec2415882ae15b8593185d6f9ab2f69555a9d (diff) | |
download | git-3bf25c23cd68dd9e99e54bf5443aebbb4a40b7d6.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |