Expand description
Git worktree operations implemented with plain git worktree commands.
Worktrees give each coding agent an isolated working directory that shares
the main repository’s object database. DevFlow places them under
<project_root>/.worktrees/ so they are easy to find and clean up.
Structs§
- Worktree
Info - One entry from
git worktree list --porcelain.
Enums§
- Worktree
Error - Errors produced by worktree operations.
Functions§
- add
- Add a worktree.
- add_
detached - Add a worktree checked out at
commitishin detached HEAD state. - list
- List all worktrees for the repository by parsing
--porcelainoutput. - phase_
agent_ path - Worktree path for a single agent on a phase:
.worktrees/phase-NN-<agent>. - phase_
path - Worktree path for a phase:
.worktrees/phase-NN. - prune
- Prune stale worktree administrative entries via
git worktree prune. - reference_
path - Worktree path for the static reference snapshot:
.worktrees/reference. - remove
- Remove a worktree directory via
git worktree remove [--force] <path>. - worktrees_
dir - The
.worktreesdirectory for a project root.