pub enum WorktreeEnsure {
AlreadyPresent,
AttachedExistingBranch,
CreatedWithNewBranch,
}Expand description
What ensure_worker_worktree had to do, so a caller rolling back
a refused spawn knows what it may delete: the worktree only when it
was absent, the branch only when this call minted it.
Variants§
AlreadyPresent
path already stood and was reused; a stale registration was
repaired first when the repo had been moved.
AttachedExistingBranch
path was created and an existing worktree-<label> branch was
attached to it. The branch predates the call and may hold the
worker’s only copy of its commits.
CreatedWithNewBranch
path was created and worktree-<label> was minted at claude’s
fresh base: origin/<default-branch>, or the local HEAD when the
repo names no usable origin base.
Trait Implementations§
Source§impl Clone for WorktreeEnsure
impl Clone for WorktreeEnsure
impl Copy for WorktreeEnsure
Source§impl Debug for WorktreeEnsure
impl Debug for WorktreeEnsure
impl Eq for WorktreeEnsure
Source§impl PartialEq for WorktreeEnsure
impl PartialEq for WorktreeEnsure
impl StructuralPartialEq for WorktreeEnsure
Auto Trait Implementations§
impl Freeze for WorktreeEnsure
impl RefUnwindSafe for WorktreeEnsure
impl Send for WorktreeEnsure
impl Sync for WorktreeEnsure
impl Unpin for WorktreeEnsure
impl UnsafeUnpin for WorktreeEnsure
impl UnwindSafe for WorktreeEnsure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.