pub struct RunOpts {
pub retry_after_fixup: bool,
pub all_files: bool,
}Expand description
Inputs that control how run_for_update behaves. Defaults match
pre-0.3.0 behavior (no retry).
Fields§
§retry_after_fixup: boolWhen the initial hook run produces a fixup commit AND reports
failure, re-run the hooks against the fixup commit. If the
re-run is clean, the overall outcome is reported as success
with initial_failure = true. Use this to recover from
transient races (e.g. hk’s intra-bookmark step parallelism
fighting for .git/index.lock while one step legitimately
auto-fixes files).
all_files: boolRun hooks against every tracked file in the worktree rather
than the diff range. Each runner gets its own all-files flag
(see crate::runner::hook_command_all_files). Currently
surfaced via jj-hp run --all-files; push always uses the
diff range since the bookmark’s ref bounds are the whole
point.