diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-13 15:15:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-13 15:15:57 -0700 |
commit | a5e61a4225a7319ab5fdd6d7b63e250f5b08255c (patch) | |
tree | d1906b338a383f38262a6e5d78b4fbfe24363311 /run-command.h | |
parent | cf006037bf93589053a747a482e2f7c77cf0967e (diff) | |
parent | cfe853e66be56b4a035739b0f21ba409dfca695f (diff) |
Merge branch 'ab/config-based-hooks-1'
Mostly preliminary clean-up in the hook API.
* ab/config-based-hooks-1:
hook-list.h: add a generated list of hooks, like config-list.h
hook.c users: use "hook_exists()" instead of "find_hook()"
hook.c: add a hook_exists() wrapper and use it in bugreport.c
hook.[ch]: move find_hook() from run-command.c to hook.c
Makefile: remove an out-of-date comment
Makefile: don't perform "mv $@+ $@" dance for $(GENERATED_H)
Makefile: stop hardcoding {command,config}-list.h
Makefile: mark "check" target as .PHONY
Diffstat (limited to 'run-command.h')
-rw-r--r-- | run-command.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/run-command.h b/run-command.h index b9aff74914..5e544acf4b 100644 --- a/run-command.h +++ b/run-command.h @@ -224,13 +224,6 @@ int finish_command_in_signal(struct child_process *); */ int run_command(struct child_process *); -/* - * Returns the path to the hook file, or NULL if the hook is missing - * or disabled. Note that this points to static storage that will be - * overwritten by further calls to find_hook and run_hook_*. - */ -const char *find_hook(const char *name); - /** * Run a hook. * The first argument is a pathname to an index file, or NULL |