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>
This commit is contained in:
parent
a48ec24158
commit
3bf25c23cd
2
diff.c
2
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user