pub struct WorktreeInfo {
pub path: PathBuf,
pub branch: String,
pub bare: bool,
pub id: Option<String>,
}Expand description
Information about a git worktree.
Fields§
§path: PathBufPath to the worktree
branch: StringBranch name
bare: boolWhether the worktree is bare
id: Option<String>Worktree ID (for detached HEAD worktrees)
Trait Implementations§
Source§impl Clone for WorktreeInfo
impl Clone for WorktreeInfo
Auto Trait Implementations§
impl Freeze for WorktreeInfo
impl RefUnwindSafe for WorktreeInfo
impl Send for WorktreeInfo
impl Sync for WorktreeInfo
impl Unpin for WorktreeInfo
impl UnsafeUnpin for WorktreeInfo
impl UnwindSafe for WorktreeInfo
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