pub enum WorktreeOp {
Add {
path: PathBuf,
branch: String,
new_branch: bool,
},
Remove {
worktree: Worktree,
force: bool,
},
}Expand description
A worktree change we run through the backend’s CLI, so its hooks and checkout filters run as they would in a shell.
Variants§
Trait Implementations§
Source§impl Clone for WorktreeOp
impl Clone for WorktreeOp
Source§impl Debug for WorktreeOp
impl Debug for WorktreeOp
impl Eq for WorktreeOp
Source§impl PartialEq for WorktreeOp
impl PartialEq for WorktreeOp
impl StructuralPartialEq for WorktreeOp
Auto Trait Implementations§
impl Freeze for WorktreeOp
impl RefUnwindSafe for WorktreeOp
impl Send for WorktreeOp
impl Sync for WorktreeOp
impl Unpin for WorktreeOp
impl UnsafeUnpin for WorktreeOp
impl UnwindSafe for WorktreeOp
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