pub struct WorktreeEntry {
pub dir: PathBuf,
pub head: Option<String>,
pub prunable: bool,
}Expand description
One entry from git worktree list --porcelain. Includes the main
working copy plus every linked worktree.
Fields§
§dir: PathBufAbsolute path to the worktree’s directory.
head: Option<String>Tip commit SHA, or None for bare worktrees.
prunable: booltrue when git considers this entry prunable — typically the
worktree’s directory has been deleted but git worktree prune
hasn’t run. Mirrors upstream’s Prunable field; prune retention
keeps the HEAD-state but skips the index scan for prunable
entries (the index file may still be inaccessible / removed).
Trait Implementations§
Source§impl Clone for WorktreeEntry
impl Clone for WorktreeEntry
Source§fn clone(&self) -> WorktreeEntry
fn clone(&self) -> WorktreeEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorktreeEntry
impl Debug for WorktreeEntry
Source§impl PartialEq for WorktreeEntry
impl PartialEq for WorktreeEntry
Source§fn eq(&self, other: &WorktreeEntry) -> bool
fn eq(&self, other: &WorktreeEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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