pub struct WorktreeEntry {
pub path: PathBuf,
pub head: String,
pub branch: Option<String>,
pub detached: bool,
pub locked: bool,
pub prunable: bool,
}Expand description
Raw entry from git worktree list --porcelain.
Fields§
§path: PathBufPath to the worktree.
head: StringHEAD commit hash.
branch: Option<String>Branch name (if not detached).
detached: boolWhether this is a detached HEAD.
locked: boolWhether the worktree is locked.
prunable: boolWhether the worktree is prunable (directory missing).
Trait Implementations§
Source§impl Clone for WorktreeEntry
impl Clone for WorktreeEntry
Source§impl Debug for WorktreeEntry
impl Debug for WorktreeEntry
Source§impl From<WorktreeEntry> for WorktreeInfo
impl From<WorktreeEntry> for WorktreeInfo
Source§fn from(entry: WorktreeEntry) -> Self
fn from(entry: WorktreeEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for WorktreeEntry
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