pub enum AgentWorktreeReap {
Reaped {
branch: BranchReapOutcome,
},
KeptDirty {
reason: String,
},
KeptUniqueCommit {
tip: String,
},
Absent,
NotAWorktree,
RemoveFailed {
reason: String,
},
}Expand description
Outcome of reap_agent_worktree.
Variants§
Reaped
Removed. Carries the conventional branch’s reap outcome.
Fields
§
branch: BranchReapOutcomeKeptDirty
Uncommitted or untracked changes: the CLI hands a changed tree back to the caller deliberately, so the reap refuses too.
KeptUniqueCommit
Detached HEAD holding commits reachable from no ref: removal
would strand them, because the post-removal branch reap sees refs
only and never a linked worktree’s HEAD. tip is the full sha.
Absent
Already gone - the CLI’s own auto-clean, or an earlier reap.
NotAWorktree
Git does not vouch for the path being a worktree.
RemoveFailed
git worktree remove failed; the directory survives.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentWorktreeReap
impl RefUnwindSafe for AgentWorktreeReap
impl Send for AgentWorktreeReap
impl Sync for AgentWorktreeReap
impl Unpin for AgentWorktreeReap
impl UnsafeUnpin for AgentWorktreeReap
impl UnwindSafe for AgentWorktreeReap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more