]> git.ipfire.org Git - thirdparty/git.git/commit
hook.c users: use "hook_exists()" instead of "find_hook()"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 26 Sep 2021 19:03:28 +0000 (21:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2021 16:44:54 +0000 (09:44 -0700)
commit07a348e7461afe9411004a0501034cb3ff1cdee8
treea32c560bec3ad2619c621d52c79455d1dd66196a
parent330155ed8af3b2e050ac74554993ba68d303e8c3
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>
builtin/commit.c
builtin/merge.c
builtin/receive-pack.c
sequencer.c