Skip to main content

Module worktree_pool

Module worktree_pool 

Source
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 cleanup when inside a pool worktree.
status
gw worktree pool status
warm
gw worktree pool warm <n>