Expand description
Pure thread drop / promote / refresh planning.
Owns decision logic shared by heddle thread drop, heddle thread promote,
heddle thread refresh, and cleanup sweeps:
- drop disposition (refuse current / missing / delete-missing / drop steps)
- what a drop removes (unmount? checkout? ref? registry?)
- promote path defaults and in-place conversion preconditions
- refresh checkout selection and conflict-marker materialization (pure)
FS materialization, merge apply, mount RPCs, registry I/O, and recovery advice strings stay CLI-owned. Callers resolve path/mode/freshness facts first, then invoke these helpers.
Structs§
- Thread
Drop Options - Caller-supplied facts for pure drop preflight (no I/O).
- Thread
Drop Plan - Pure plan describing what a successful drop should remove / update.
- Thread
Promote Options - Caller-supplied facts for pure promote preflight (no I/O).
- Thread
Promote Plan - Pure plan for
heddle thread promote. - Thread
Refresh Options - Caller-supplied facts for pure refresh preflight (no I/O).
Enums§
- Clean
Worktree Guard - Where the clean-worktree preflight should look before mutating a thread.
- Thread
Drop Disposition - Outcome of pure drop planning before any mutation.
- Thread
Refresh Plan - Pure disposition for
heddle thread refreshbefore rebase/merge I/O.
Functions§
- contains_
conflict_ marker_ bytes - Whether existing file bytes already contain full conflict-marker triplets.
- format_
refresh_ conflict_ markers - Format conflict markers for a refresh conflict (CURRENT / INCOMING).
- plan_
clean_ worktree_ guard - Select the clean-worktree guard from force + execution-path facts.
- plan_
cleanup_ thread_ drop - Pure plan for a cleanup sweep drop (
thread cleanup). - plan_
thread_ drop - Pure preflight for
heddle thread drop/drop_thread_silent. - plan_
thread_ promote - Pure option preflight for
heddle thread promote. - plan_
thread_ refresh - Pure preflight for refresh checkout selection and no-op / refusal gates.
- promote_
confirm_ in_ place_ removal - Confirm in-place conversion teardown after FS identity facts are known.
- promote_
existing_ checkout_ path - Existing checkout path preferred for identity / in-place conversion checks.
- promote_
in_ place_ conversion_ candidate - Whether promote should consider tearing down the thread’s own existing checkout before writing a solid tree at the default path.
- resolve_
promote_ target_ path - Resolve the promote target path and whether the default was used.
- should_
materialize_ refresh_ conflict_ markers - Whether refresh should write conflict markers for a path given its current on-disk content.
- thread_
mode_ requires_ unmount - Whether a thread mode owns a FUSE/virtual mount that must be torn down before the checkout directory is removed or replaced.