summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2026-04-10 12:06:05 +0300
committerJunio C Hamano <gitster@pobox.com>2026-04-10 07:58:54 -0700
commit2eb541e8f2a9b0dd923279421c741d0a0c00420d (patch)
treed547830c2821f52273e050c1a08349823762cefd /contrib/persistent-https
parent5e57b209ff21bf1087dd8539c458737c89b03150 (diff)
downloadgit-2eb541e8f2a9b0dd923279421c741d0a0c00420d.tar.gz
git-2eb541e8f2a9b0dd923279421c741d0a0c00420d.zip
hook: move is_known_hook() to hook.c for wider use
Move is_known_hook() from builtin/hook.c (static) into hook.c and export it via hook.h so it can be reused. Make it return bool and the iterator `h` for clarity (iterate hooks). Both meson.build and the Makefile are updated to reflect that the header is now used by libgit, not the builtin sources. The next commit will use this to reject hook friendly-names that collide with known event names. Co-authored-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions