Skip to main content

run_git_with_retry_cancellable

Function run_git_with_retry_cancellable 

Source
pub fn run_git_with_retry_cancellable(
    repo_path: &Path,
    args: &[&str],
    is_transient: impl Fn(&RunError) -> bool + Send + Sync + 'static,
    cancel: Arc<AtomicBool>,
) -> Result<RunOutput, RunError>
Expand description

Run a git command with retry on transient errors plus caller-driven cancellation. See run_jj_with_retry_cancellable for semantics.