pub fn set_spawn_hook(hook: fn(&mut Command) -> Result<Output, Error>)Expand description
Install a spawn-hook for this module’s git subprocesses. Idempotent;
subsequent calls are no-ops. Called once from the CLI’s main() so
long-running watch sessions reap pending git children on Ctrl+C.
Defaults to Command::output when not set; the function-pointer
indirection costs nothing for embedders and tests that don’t install
a hook.