Expand description
gw worktree pool commands — Worktree pool management
Pool state is derived from the filesystem, not from an inventory file.
Marker files in .git/worktree-pool/acquired/ track acquisition state.
Functions§
- acquire
gw worktree pool acquire- detect_
pool_ worktree - Check if the current directory is inside a pool worktree. Returns the pool worktree name if so.
- drain
gw worktree pool drain [--force]- pool_
release_ after_ cleanup - Release a pool worktree: clean files, remove marker, run setup hook.
Called from
gw cleanupwhen inside a pool worktree. - status
gw worktree pool status- warm
gw worktree pool warm <n>