← All Projects
git-multi-hook

git-multi-hook

ToolOpen SourceOriginal

git-multi-hook simplifies running multiple scripts for git hook events: it will discover and run every script you've placed in a directory, in parallel, and supports both global and per-repository hooks.

Prior to version `2.54`, git would only run one script when a git event hook triggered so I wrote git-multi-hook. While later versions of git fix this issue, they must be individually configured.

git-multi-hook simplifies configuratoin: drop a hook script into a directory where it will get auto-detected when the event occurs.

All the hook scripts are run in parallel (and print their output serially for easy readability), so it's possible to run many hooks -- linting scripts, quality gates, formatters, or test runners -- rapidly.