pub struct GitWorktreeInfo {
pub path: PathBuf,
pub head: String,
pub branch: Option<String>,
pub bare: bool,
}Expand description
Information about a Git worktree from git worktree list
Fields§
§path: PathBufPath to the worktree
head: StringHEAD commit
branch: Option<String>Branch name (if any)
bare: boolWhether this is bare
Trait Implementations§
Source§impl Clone for GitWorktreeInfo
impl Clone for GitWorktreeInfo
Source§fn clone(&self) -> GitWorktreeInfo
fn clone(&self) -> GitWorktreeInfo
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 moreAuto Trait Implementations§
impl Freeze for GitWorktreeInfo
impl RefUnwindSafe for GitWorktreeInfo
impl Send for GitWorktreeInfo
impl Sync for GitWorktreeInfo
impl Unpin for GitWorktreeInfo
impl UnsafeUnpin for GitWorktreeInfo
impl UnwindSafe for GitWorktreeInfo
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