summaryrefslogtreecommitdiff
path: root/hook.h
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2021-09-26 19:03:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-27 16:44:54 (GMT)
commit330155ed8af3b2e050ac74554993ba68d303e8c3 (patch)
treed3223aec6d21a36bfddf3667f3ae6b3146fc5ba3 /hook.h
parent5e3aba33da26803e48b0099c9dabfd327f7f8b8b (diff)
downloadgit-330155ed8af3b2e050ac74554993ba68d303e8c3.zip
git-330155ed8af3b2e050ac74554993ba68d303e8c3.tar.gz
git-330155ed8af3b2e050ac74554993ba68d303e8c3.tar.bz2
hook.c: add a hook_exists() wrapper and use it in bugreport.c
Add a boolean version of the find_hook() function for those callers who are only interested in checking whether the hook exists, not what the path to it is. Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hook.h')
-rw-r--r--hook.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hook.h b/hook.h
index 68624f1..6aa36fc 100644
--- a/hook.h
+++ b/hook.h
@@ -8,4 +8,9 @@
*/
const char *find_hook(const char *name);
+/**
+ * A boolean version of find_hook()
+ */
+int hook_exists(const char *hookname);
+
#endif