aboutsummaryrefslogtreecommitdiff
path: root/hook.c
diff options
context:
space:
mode:
authorAdrian Ratiu <adrian.ratiu@collabora.com>2026-03-25 21:54:55 +0200
committerJunio C Hamano <gitster@pobox.com>2026-03-25 14:00:46 -0700
commit8f7db6f8b585a3eef4ba595efd2d098f9abf3606 (patch)
treed2d4bec32e2a0aae66c898c532ced33343d34761 /hook.c
parentb06770e5d8948c7cad76d7507423376eacf1e005 (diff)
downloadgit-8f7db6f8b585a3eef4ba595efd2d098f9abf3606.tar.xz
hook: rename cb_data_free/alloc -> hook_data_free/alloc
Rename the hook callback function types to use the hook prefix. This is a style fix with no logic changes. Suggested-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 'hook.c')
-rw-r--r--hook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hook.c b/hook.c
index 935237fc1d..4a0db5cfeb 100644
--- a/hook.c
+++ b/hook.c
@@ -52,7 +52,7 @@ const char *find_hook(struct repository *r, const char *name)
return path.buf;
}
-static void hook_clear(struct hook *h, cb_data_free_fn cb_data_free)
+static void hook_clear(struct hook *h, hook_data_free_fn cb_data_free)
{
if (!h)
return;
@@ -70,7 +70,7 @@ static void hook_clear(struct hook *h, cb_data_free_fn cb_data_free)
free(h);
}
-void hook_list_clear(struct string_list *hooks, cb_data_free_fn cb_data_free)
+void hook_list_clear(struct string_list *hooks, hook_data_free_fn cb_data_free)
{
struct string_list_item *item;