From: Linus Torvalds Date: Wed, 25 May 2005 18:09:12 +0000 (-0700) Subject: diff.c: don't silently ignore unknown state changes in diffs. X-Git-Tag: v0.99~463 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f93a631acd2017c5f7c5bc29294b753588b0bea;p=git.git diff.c: don't silently ignore unknown state changes in diffs. Give them an "unknown" status, ie '?'. --- 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);