pub fn is_conflict_error(error: &Error) -> boolExpand description
What:
Whether an error means “the worktree changed under us” rather than a failure.
Why:
WORKTREE_CONFLICT_CODES:
ENOENT,
ENOTDIR,
ELOOP,
EACCES.
In TS you’d write (pseudocode):
WORKTREE_CONFLICT_CODES.has(error.code)