summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorLibravatar Emily Shaffer <emilyshaffer@google.com>2021-12-22 04:59:36 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-07 15:19:34 -0800
commit1a3017d908824ab42ca7a5af7073f4cdc5c88fbf (patch)
tree1b6711e0a4033c7688eca8e909b307f8ea7e0f43 /transport.c
parenthooks: convert non-worktree 'post-checkout' hook to hook library (diff)
downloadtgif-1a3017d908824ab42ca7a5af7073f4cdc5c88fbf.tar.xz
hooks: convert 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 in builtin/worktree.c. For this special case we need a change to the hook API to teach it to run the hook from a given directory. We cannot skip the "absolute_path" flag and just check if "dir" is specified as we'd then fail to find our hook in the new dir we'd chdir() to. We currently don't have a use-case for running a hook not in our "base" repository at a given absolute path, so let's have "dir" imply absolute_path(find_hook(hook_name)). 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>
Diffstat (limited to 'transport.c')
0 files changed, 0 insertions, 0 deletions