]> git.99rst.org Git - git.git/commit
hook: introduce hook_config_cache_entry for per-hook data
authorAdrian Ratiu <redacted>
Wed, 25 Mar 2026 19:55:00 +0000 (21:55 +0200)
committerJunio C Hamano <redacted>
Wed, 25 Mar 2026 21:00:47 +0000 (14:00 -0700)
commitd8513bc5d84f21ea6d327a9cf9a369077eb19c67
tree9fc182bd672ca0f43e21c730a5ae4f42de893078
parente0fceec06ba10222c4b66e8fdf83b139c4233d31
hook: introduce hook_config_cache_entry for per-hook data

Replace the bare `char *command` util pointer stored in each string_list
item with a heap-allocated `struct hook_config_cache_entry` that carries
that command string.

This is just a refactoring with no behavior changes, to give the cache
entry room to grow, so it can carry the additional hook metadata we'll
be adding in the following commits.

Signed-off-by: Adrian Ratiu <redacted>
Signed-off-by: Junio C Hamano <redacted>
hook.c
git clone https://git.99rst.org/PROJECT