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 7935404eaabbf9ec987f042e1778705d737e39e1..3d86b7a317d0699bec3a2f5c0e09fb1df1421083 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);