Skip to main content

is_conflict_error

Function is_conflict_error 

Source
pub fn is_conflict_error(error: &Error) -> bool
Expand 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)