Skip to main content

is_transient_error

Function is_transient_error 

Source
pub fn is_transient_error(err: &RunError) -> bool
Expand description

Default transient-error check for jj/git.

Retries on NonZeroExit whose stderr contains "stale" or ".lock" (jj working-copy staleness, git/jj lock-file contention). Spawn failures and timeouts are never treated as transient.