pub struct WorktreeEntry {
pub path: PathBuf,
pub head: HeadState,
pub is_bare: bool,
pub is_locked: bool,
pub lock_reason: Option<String>,
pub admin_dir: PathBuf,
pub is_prunable: bool,
pub prunable_reason: Option<PrunableReason>,
pub is_current: bool,
}Expand description
One row returned by list_worktrees.
Fields§
§path: PathBufAbsolute path to the working tree (for bare main worktree, the common git dir).
head: HeadStateResolved HEAD for this worktree.
is_bare: boolWhether this worktree is bare (only the main entry can be bare).
is_locked: boolTrue when <admin>/locked exists.
lock_reason: Option<String>Contents of the locked file when non-empty.
admin_dir: PathBufAdministrative directory: common git dir for main, else worktrees/<id>/.
is_prunable: boolTrue when Self::prunable_reason is set (Git prunable in worktree list).
prunable_reason: Option<PrunableReason>Typed prune reason when Self::is_prunable is true.
is_current: boolTrue when this row is the worktree Repository was opened from.
Trait Implementations§
Source§impl Clone for WorktreeEntry
impl Clone for WorktreeEntry
Source§impl Debug for WorktreeEntry
impl Debug for WorktreeEntry
impl Eq for WorktreeEntry
Source§impl PartialEq for WorktreeEntry
impl PartialEq for WorktreeEntry
impl StructuralPartialEq for WorktreeEntry
Auto Trait Implementations§
impl Freeze for WorktreeEntry
impl RefUnwindSafe for WorktreeEntry
impl Send for WorktreeEntry
impl Sync for WorktreeEntry
impl Unpin for WorktreeEntry
impl UnsafeUnpin for WorktreeEntry
impl UnwindSafe for WorktreeEntry
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§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.