Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
diff: write prefix to the correct file
author
John Keeping
<john@keeping.me.uk>
Thu, 7 Feb 2013 20:15:24 +0000
(20:15 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 12 Feb 2013 19:42:07 +0000
(11:42 -0800)
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>
diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a48ec24
)
diff --git
a/diff.c
b/diff.c
index 732d4c227595873bb94224da618ce5612a7415af..951313467097e7283adcfd428bec78dc09b66b40 100644
(file)
--- 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) {