Commit ea56f977 authored by Duy Nguyen's avatar Duy Nguyen Committed by Junio C Hamano

wt-status.c: catch unhandled diff status codes

Signed-off-by: Duy Nguyen's avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 98bc94ec
......@@ -469,8 +469,8 @@ static void wt_status_collect_changed_cb(struct diff_queue_struct *q,
oidcpy(&d->oid_index, &p->one->oid);
break;
case DIFF_STATUS_UNKNOWN:
die("BUG: worktree status unknown???");
default:
die("BUG: unhandled diff-files status '%c'", p->status);
break;
}
......@@ -550,6 +550,10 @@ static void wt_status_collect_updated_cb(struct diff_queue_struct *q,
* values in these fields.
*/
break;
default:
die("BUG: unhandled diff-index status '%c'", p->status);
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment