Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
combine-diff: Honour -z option correctly.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 27 Feb 2006 12:52:52 +0000
(12:52 +0000)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 27 Feb 2006 19:01:22 +0000
(11:01 -0800)
Combined diffs don't null terminate things in the same way as standard
diffs. This is presumably wrong.
Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
combine-diff.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
e70c6b3
)
diff --git
a/combine-diff.c
b/combine-diff.c
index 984103edce04d6313009ad4e7755c9eea3bf52e6..a23894d86927ccf3fcf4a9c720df49ff2364b749 100644
(file)
--- a/
combine-diff.c
+++ b/
combine-diff.c
@@
-726,7
+726,7
@@
static int show_patch_diff(struct combine_diff_path *elem, int num_parent,
if (header) {
shown_header++;
- p
uts(header
);
+ p
rintf("%s%c", header, opt->line_termination
);
}
printf("diff --%s ", dense ? "cc" : "combined");
if (quote_c_style(elem->path, NULL, NULL, 0))
@@
-799,7
+799,7
@@
static void show_raw_diff(struct combine_diff_path *p, int num_parent, const cha
inter_name_termination = 0;
if (header)
- p
uts(header
);
+ p
rintf("%s%c", header, line_termination
);
for (i = 0; i < num_parent; i++) {
if (p->parent[i].mode)