Skip to content

new_feature.hook_policy

new_feature.hook_policy

Evaluate provider-neutral managed-worktree hook requests.

GitContext dataclass

Describe the repository and branch that own a target path.

blocks_target_edit(targets: tuple[Path, ...], *, cwd: Path) -> bool

Check whether any target belongs to the protected branch.

parse_worktree_action(command: str) -> WorktreeAction | None

Return the direct managed-worktree action invoked by a shell command.

blocks_target_merge(command: str, *, cwd: Path) -> bool

Reject starting a direct merge on the configured target branch.