summaryrefslogtreecommitdiff
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-09-26 21:03:28 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-27 09:44:54 -0700
commit07a348e7461afe9411004a0501034cb3ff1cdee8 (patch)
treea32c560bec3ad2619c621d52c79455d1dd66196a /builtin/submodule--helper.c
parenthook.c: add a hook_exists() wrapper and use it in bugreport.c (diff)
downloadtgif-07a348e7461afe9411004a0501034cb3ff1cdee8.tar.xz
hook.c users: use "hook_exists()" instead of "find_hook()"
Use the new hook_exists() function instead of find_hook() where the latter was called in boolean contexts. This make subsequent changes in a series where we further refactor the hook API clearer, as we won't conflate wanting to get the path of the hook with checking for its existence. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/submodule--helper.c')
0 files changed, 0 insertions, 0 deletions