[PATCH 00/10] config-hook cleanups and two small 'git hook list' features
- From
Adrian Ratiu <adrian.ratiu@collabora.com>
- Date
- Mar 9, 2026, 00:54 UTC
- Message-ID
- <20260309005416.2760030-1-adrian.ratiu@collabora.com>
Hello everyone,
As promised I've spun-off v3 of the config series [1] into its own standalone patch series after v2 landed in next.
This is mostly minor cleanups and refactorings + two minor feature additions to `git hook list`, which resulted from the previous review discussions:
1. The ability to show the config scope (--show-scope). 2. The ability to show which hooks are disabled.
This is based on next because the config hooks support is only in next.
I have pushed the branch to Github [2] and provided a clean CI run [3].
Big thank-you's to all who contributed to this up to now, Adrian
1: https://lore.kernel.org/git/20260204165126.1548805-1-adrian.ratiu@collabora.com/T/#mafc63b5b32a78e48a703cccca3b7d6d9fe668fa2 2: https://github.com/10ne1/git/tree/dev/aratiu/config-cleanups-v1 3: https://github.com/10ne1/git/actions/runs/22833022192
Adrian Ratiu (10): hook: move unsorted_string_list_remove() to string-list.[ch] hook: fix minor style issues hook: rename cb_data_free/alloc -> hook_data_free/alloc hook: detect & emit two more bugs hook: replace hook_list_clear() -> string_list_clear_func() hook: make consistent use of friendly-name in docs t1800: add test to verify hook execution ordering hook: refactor hook_config_cache from strmap to named struct hook: show config scope in git hook list hook: show disabled hooks in "git hook list"
Documentation/config/hook.adoc | 30 ++--- Documentation/git-hook.adoc | 15 ++- builtin/hook.c | 28 +++-- builtin/receive-pack.c | 11 +- hook.c | 220 +++++++++++++++++++++------------ hook.h | 39 ++++-- refs.c | 3 +- repository.h | 3 +- string-list.c | 9 ++ string-list.h | 8 ++ t/t1800-hook.sh | 83 ++++++++++++- transport.c | 3 +- 12 files changed, 321 insertions(+), 131 deletions(-)
-- 2.52.0.732.gb351b5166d.dirty