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)
for (i = 0; i < q->nr; i++) { for (i = 0; i < q->nr; i++) {
struct diff_filepair *p = q->queue[i]; struct diff_filepair *p = q->queue[i];
if (p->status == 0) if (p->status == 0)
continue; p->status = '?';
switch (diff_output_style) { switch (diff_output_style) {
case DIFF_FORMAT_PATCH: case DIFF_FORMAT_PATCH:
diff_flush_patch(p); diff_flush_patch(p);

Loading…
Cancel
Save