Expand description
WorktreeHandle — a live record of a managed git worktree.
Structs§
- Stale
Worktree - A worktree discovered by
WorktreeManager::reconcilethat is not present in the current process’s own in-memory session state. - Worktree
Handle - A live record of a git worktree that
WorktreeManagerhas created for a subagent.
Constants§
- BARE_
WORKTREE_ SENTINEL - Sentinel used for
WorktreeHandle::branch_namewhen a worktree discovered viaWorktreeManager::reconcileis the main worktree of a bare repository (git worktree list --porcelainemits abareline, with noHEADorbranch/detachedline at all, for these entries). - DETACHED_
BRANCH_ SENTINEL - Sentinel used for
WorktreeHandle::branch_namewhen a worktree discovered viaWorktreeManager::reconcileis on a detachedHEADrather than a branch (git worktree list --porcelainemits adetachedline instead ofbranch refs/heads/<name>for these entries).