pub enum WorktreeScope {
Primary,
Linked {
key: String,
},
}Expand description
Whether the current directory is the primary checkout or a linked worktree.
Variants§
Primary
We are in the primary (main) worktree. The global context IS the only context.
Linked
We are in a linked worktree. key is the basename of git-dir
(e.g. “foo” for .git/worktrees/foo).
Trait Implementations§
Source§impl Clone for WorktreeScope
impl Clone for WorktreeScope
Source§impl Debug for WorktreeScope
impl Debug for WorktreeScope
Source§impl PartialEq for WorktreeScope
impl PartialEq for WorktreeScope
impl StructuralPartialEq for WorktreeScope
Auto Trait Implementations§
impl Forget for WorktreeScope
impl Freeze for WorktreeScope
impl Move for WorktreeScope
impl RefUnwindSafe for WorktreeScope
impl Send for WorktreeScope
impl Sync for WorktreeScope
impl Unpin for WorktreeScope
impl UnsafeUnpin for WorktreeScope
impl UnwindSafe for WorktreeScope
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