pub struct Worktree {
pub path: Utf8PathBuf,
pub head: String,
pub branch: Option<String>,
pub bare: bool,
pub locked: Option<String>,
pub prunable: Option<String>,
}Expand description
One worktree as git worktree list --porcelain -z reports it.
Fields§
§path: Utf8PathBufThe worktree’s path.
head: StringThe full object name at HEAD.
branch: Option<String>The checked-out branch’s short name; None when detached.
bare: boolWhether the record is the bare repository itself.
locked: Option<String>The lock reason, where locked (empty string for a bare lock).
prunable: Option<String>Git’s own prunable note, where the directory is missing.
Trait Implementations§
impl Eq for Worktree
impl StructuralPartialEq for Worktree
Auto Trait Implementations§
impl Freeze for Worktree
impl RefUnwindSafe for Worktree
impl Send for Worktree
impl Sync for Worktree
impl Unpin for Worktree
impl UnsafeUnpin for Worktree
impl UnwindSafe for Worktree
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