#include "git-compat-util.h" #include "abspath.h" #include "advice.h" #include "gettext.h" #include "hook.h" #include "path.h" #include "run-command.h" #include "config.h" #include "strbuf.h" #include "environment.h" #include "setup.h" const char *find_hook(struct repository *r, const char *name) { … } int hook_exists(struct repository *r, const char *name) { … } static int pick_next_hook(struct child_process *cp, struct strbuf *out UNUSED, void *pp_cb, void **pp_task_cb UNUSED) { … } static int notify_start_failure(struct strbuf *out UNUSED, void *pp_cb, void *pp_task_cp UNUSED) { … } static int notify_hook_finished(int result, struct strbuf *out UNUSED, void *pp_cb, void *pp_task_cb UNUSED) { … } static void run_hooks_opt_clear(struct run_hooks_opt *options) { … } int run_hooks_opt(struct repository *r, const char *hook_name, struct run_hooks_opt *options) { … } int run_hooks(struct repository *r, const char *hook_name) { … } int run_hooks_l(struct repository *r, const char *hook_name, ...) { … }