Browse Source

diff.c: don't silently ignore unknown state changes in diffs.

Give them an "unknown" status, ie '?'.
maint
Linus Torvalds 20 years ago
parent
commit
6f93a631ac
  1. 2
      diff.c

2
diff.c

@ -768,7 +768,7 @@ void diff_flush(int diff_output_style, int resolve_rename_copy) @@ -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);

Loading…
Cancel
Save