Skip to main content

Module worktree_ensure

Module worktree_ensure 

Source
Expand description

Change worktree ensure: verify or create the correct worktree for a change. Change worktree ensure: verify or create the correct worktree for a change.

The ensure_worktree function is the primary entrypoint used by ito worktree ensure --change <id>. It resolves the expected path, creates the worktree if absent, runs initialization (file copy + setup), and returns the resolved absolute path.

Functionsยง

ensure_worktree
Ensure the correct change worktree exists and is initialized.