pub struct WorktreeList {
pub paired: Vec<String>,
pub fs_only: Vec<String>,
pub git_only: Vec<String>,
}Expand description
Cross-checked enumeration of per-run worktrees.
Three buckets because the two sources of truth (filesystem and
git worktree list) can diverge, and downstream consumers (plan
Unit 13 omne status, future cleanup path) need to know which:
paired— fs dir AND git record both present. Healthy run.fs_only— fs dir present, git never knew or forgot (manualgit worktree removewithout cleaning the dir, partial-state leak from an interruptedcreate).git_only— git still tracks but fs dir is gone (manualrm -rfwithoutgit worktree prune).git worktree pruneis the fix.
Fields§
§paired: Vec<String>§fs_only: Vec<String>§git_only: Vec<String>Trait Implementations§
Source§impl Clone for WorktreeList
impl Clone for WorktreeList
Source§fn clone(&self) -> WorktreeList
fn clone(&self) -> WorktreeList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorktreeList
impl Debug for WorktreeList
Source§impl Default for WorktreeList
impl Default for WorktreeList
Source§fn default() -> WorktreeList
fn default() -> WorktreeList
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorktreeList
impl PartialEq for WorktreeList
impl Eq for WorktreeList
impl StructuralPartialEq for WorktreeList
Auto Trait Implementations§
impl Freeze for WorktreeList
impl RefUnwindSafe for WorktreeList
impl Send for WorktreeList
impl Sync for WorktreeList
impl Unpin for WorktreeList
impl UnsafeUnpin for WorktreeList
impl UnwindSafe for WorktreeList
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more