pub async fn set_worktree_hooks_path(
worktree: &Path,
hooks_dir: &Path,
) -> Result<()>Expand description
Point a single worktree at its own hooks directory.
core.hooksPath is normally repo-wide; scoping it with --worktree keeps
the operator’s own hooks untouched in the primary worktree, and the setting
disappears together with the worktree.