pub fn run_guarded_child(
command: &mut Command,
release: &mut dyn ReleaseSteps,
) -> Result<i32, String>Expand description
What: Run a Git child under the signal guard, release what it held, and report its exit code. Why: Release runs even when the child fails to run, and each failure is reported, not hidden.
In TS you’d write (pseudocode):
const guard = installSignalGuard(); const outcome = await run(child); await release(); guard.drop(); exit(exitCode(outcome));