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,
}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>/.
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
impl Eq 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 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