pub fn run_hooks(settings: &Settings, event: HookEvent, ctx: HookContext)Expand description
Fire every matching hook for event. Each child runs on its own
std::thread and inherits stdio from /dev/null. Fire-and-forget:
we never block on the child or capture its output.
Capped at MAX_HOOKS_PER_EVENT — anything beyond is dropped with
a warning. See run_hooks_with for a test-friendly version that
reports back which hooks would fire without actually spawning.