Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff: print line prefix for --name-only output
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index abff2eec2b0604786b09ff0ac7fae24e1df6677f..1205bac3fff5968360d3fe6bdfe9e4a51ab0286c 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-4353,6
+4353,7
@@
static void flush_one_pair(struct diff_filepair *p, struct diff_options *opt)
name_a = p->two->path;
name_b = NULL;
strip_prefix(opt->prefix_length, &name_a, &name_b);
+ fprintf(opt->file, "%s", diff_line_prefix(opt));
write_name_quoted(name_a, opt->file, opt->line_termination);
}
}