Expand description
Low-level git worktree operations.
Provides utilities for creating, managing, and removing git worktrees. These functions handle the mechanics of worktree lifecycle management.
§Doc Audit
- audited: 2026-01-25
- docs: scale/isolation.md
- ignore: false
Structs§
- Merge
Cleanup Result - Result of a merge operation
Functions§
- commit_
in_ worktree - Commits changes in a worktree.
- copy_
spec_ to_ worktree - Copies the spec file from the main working directory to a worktree.
- create_
worktree - Creates a new git worktree for the given spec.
- get_
active_ worktree - Returns the worktree path for a spec if an active worktree exists.
- has_
uncommitted_ changes - Checks if a worktree has uncommitted changes.
- isolate_
worktree_ specs - Isolates the worktree environment by removing all specs except the working spec.
- merge_
and_ cleanup - Merges a branch to main and cleans up.
- remove_
worktree - Removes a git worktree and cleans up its directory.
- worktree_
path_ for_ spec - Returns the worktree path for a given spec ID.