pub enum WorktreeTransition {
Pull,
CreateBranch,
Other,
}Expand description
Which kind of working-tree transition refused with
OakError::LocalChangesWouldBeOverwritten: what resolves the refusal
depends on it. Set by the command that knows (the planner raises
WorktreeTransition::Other).
Variants§
Pull
oak pull (parent sync), and the watch daemon’s pull.
CreateBranch
oak switch -c / oak start: a new branch from the newer main.
Other
Anything else that moves the tree.
Trait Implementations§
Source§impl Clone for WorktreeTransition
impl Clone for WorktreeTransition
impl Copy for WorktreeTransition
Source§impl Debug for WorktreeTransition
impl Debug for WorktreeTransition
impl Eq for WorktreeTransition
Source§impl PartialEq for WorktreeTransition
impl PartialEq for WorktreeTransition
impl StructuralPartialEq for WorktreeTransition
Auto Trait Implementations§
impl Forget for WorktreeTransition
impl Freeze for WorktreeTransition
impl Move for WorktreeTransition
impl RefUnwindSafe for WorktreeTransition
impl Send for WorktreeTransition
impl Sync for WorktreeTransition
impl Unpin for WorktreeTransition
impl UnsafeUnpin for WorktreeTransition
impl UnwindSafe for WorktreeTransition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more