Skip to content

Commit 3bf25c2

Browse files
johnkeepinggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a48ec24 commit 3bf25c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4483,7 +4483,7 @@ void diff_flush(struct diff_options *options)
44834483
struct strbuf *msg = NULL;
44844484
msg = options->output_prefix(options,
44854485
options->output_prefix_data);
4486-
fwrite(msg->buf, msg->len, 1, stdout);
4486+
fwrite(msg->buf, msg->len, 1, options->file);
44874487
}
44884488
putc(options->line_termination, options->file);
44894489
if (options->stat_sep) {

0 commit comments

Comments
 (0)