diff options
Diffstat (limited to 'run-command.h')
-rw-r--r-- | run-command.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/run-command.h b/run-command.h index 263b9662ad..5b4425a3cb 100644 --- a/run-command.h +++ b/run-command.h @@ -52,7 +52,12 @@ int start_command(struct child_process *); int finish_command(struct child_process *); int run_command(struct child_process *); -extern char *find_hook(const char *name); +/* + * 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_*. + */ +extern const char *find_hook(const char *name); LAST_ARG_MUST_BE_NULL extern int run_hook_le(const char *const *env, const char *name, ...); extern int run_hook_ve(const char *const *env, const char *name, va_list args); |