#[non_exhaustive]pub enum WorktreeOperation {
Switch,
Pick,
Merge,
RebaseExec,
Rebase,
}Expand description
The command a dirty worktree blocked (Error::DirtyWorktree).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Switch
Switching branches or checking out a commit.
Pick
Picking (cherry-picking) or reverting commits.
Merge
Merging.
RebaseExec
Rebasing with --exec.
Rebase
Starting a rebase that stops on conflicts (the stop rewrites the index and worktree).
Trait Implementations§
Source§impl Clone for WorktreeOperation
impl Clone for WorktreeOperation
impl Copy for WorktreeOperation
Source§impl Debug for WorktreeOperation
impl Debug for WorktreeOperation
Source§impl Display for WorktreeOperation
impl Display for WorktreeOperation
impl Eq for WorktreeOperation
Source§impl Hash for WorktreeOperation
impl Hash for WorktreeOperation
Source§impl PartialEq for WorktreeOperation
impl PartialEq for WorktreeOperation
impl StructuralPartialEq for WorktreeOperation
Auto Trait Implementations§
impl Freeze for WorktreeOperation
impl RefUnwindSafe for WorktreeOperation
impl Send for WorktreeOperation
impl Sync for WorktreeOperation
impl Unpin for WorktreeOperation
impl UnsafeUnpin for WorktreeOperation
impl UnwindSafe for WorktreeOperation
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