Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'hook.c')
-rw-r--r--hook.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hook.c b/hook.c
index a0917cf877..d67a114e62 100644
--- a/hook.c
+++ b/hook.c
@@ -142,3 +142,10 @@ cleanup:
run_hooks_opt_clear(options);
return ret;
}
+
+int run_hooks(const char *hook_name)
+{
+ struct run_hooks_opt opt = RUN_HOOKS_OPT_INIT;
+
+ return run_hooks_opt(hook_name, &opt);
+}