]> git.ipfire.org Git - thirdparty/git.git/commit
hooks: convert non-worktree 'post-checkout' hook to hook library
authorEmily Shaffer <emilyshaffer@google.com>
Wed, 22 Dec 2021 03:59:35 +0000 (04:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 23:19:34 +0000 (15:19 -0800)
commit72ddf34d7c62a0b272d5cdd8f62fcfc782bb3a45
treee47fbee766ad17bd4584b435d21411fe07e9b3e7
parent67ad630617b279e24288aa398f7264ceacc7ee6c
hooks: convert non-worktree 'post-checkout' hook to hook library

Move the running of the 'post-checkout' hook away from run-command.h
to the new hook.h library, except in the case of
builtin/worktree.c. That special-case will be handled in a subsequent
commit.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Acked-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/clone.c
reset.c