aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 11:09:12 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 11:09:12 -0700
commit6f93a631acd2017c5f7c5bc29294b753588b0bea (patch)
treef9c61e26dc718084b1274c00f00cc48495a0a484 /diff.c
parent4cae1a967a99962e51777fcc950321902cce0adf (diff)
downloadgit-6f93a631acd2017c5f7c5bc29294b753588b0bea.tar.gz
git-6f93a631acd2017c5f7c5bc29294b753588b0bea.tar.xz
diff.c: don't silently ignore unknown state changes in diffs.
Give them an "unknown" status, ie '?'.
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 7935404ea..3d86b7a31 100644
--- a/diff.c
+++ b/diff.c
@@ -768,7 +768,7 @@ void diff_flush(int diff_output_style, int resolve_rename_copy)
for (i = 0; i < q->nr; i++) {
struct diff_filepair *p = q->queue[i];
if (p->status == 0)
- continue;
+ p->status = '?';
switch (diff_output_style) {
case DIFF_FORMAT_PATCH:
diff_flush_patch(p);