Expand description
Lifecycle hooks executed by gw at key worktree transitions.
Configured via hooks.post_new / hooks.pre_rm keys in
~/.config/git-worktree-manager/config.json or .cwconfig.json.
Functionsยง
- run_
event - Run the configured hook for
event(one of"post_new","pre_rm"), resolving the hook command from the layered config rooted at the main repo (resolved fromcwdviagit::get_main_repo_root, falling back tocwdif that fails). The hook runs withcwdas its working directory.