diff.c: don't silently ignore unknown state changes in diffs.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 18:09:12 +0000 (11:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 18:09:12 +0000 (11:09 -0700)
Give them an "unknown" status, ie '?'.

diff.c

diff --git a/diff.c b/diff.c
index 7935404..3d86b7a 100644 (file)
--- 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);