Re: [PATCH v3 00/12][next] Specify hooks via configs
From: Junio C Hamano <hidden>
Date: 2026-03-02 16:48:28
Adrian Ratiu [off-list ref] writes:
Hello everyone, v3 addresses all feedback received in v2 (details below, including range-diff). This series adds a new feature: the ability to specify commands to run for hook events via config entries (including shell commands). So instead of dropping a shell script or a custom program in .git/hooks you can now tell git via config files to run a program or shell script (can be specified directly in the config) when you run hook "foo". This also means you can setup global hooks to run in multiple repos via global configs and there's an option to disable them if necessary. For simplicity, because this series is becoming rather big, hooks are still executed sequentially (.jobs == 1). Parallel execution is added in another follow-up patch series. This is based on the latest next branch because it depends on some commits which haven't yet landed in master.
Please don't depend a series on 'next'. That will make your topic taken hostage by _every_ topic there. Besides, the ar/config-hooks topic has been in 'next' for the last few days already, and it is time to go incremental updates. Thanks.