Skip to main content

set_spawn_hook

Function set_spawn_hook 

Source
pub fn set_spawn_hook(hook: ChangedFilesSpawnHook)
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.