pub enum Choice {
Combine,
KeepMine,
KeepTheirs,
KeepBoth,
KeepAmended,
Drop,
MyOrder,
TheirOrder,
MySplit,
TheirSplit,
Restore,
Resolve,
}Expand description
A way of putting two diverged heads back together. The ids are stable.
Variants§
Combine
Every change from both sides, combined commit by commit: their commits kept as they are where possible, yours replayed on top.
KeepMine
Your head as it is.
KeepTheirs
Their head as it is.
KeepBoth
For a commit both amended: their version, then your amendment as a commit of its own on top.
KeepAmended
Where one side dropped a commit the other amended: keep the amended version.
Drop
Where one side dropped a commit the other amended: drop it.
MyOrder
Both reordered: your order.
TheirOrder
Both reordered: their order.
MySplit
Both split a commit: your pieces.
TheirSplit
Both split a commit: their pieces.
Restore
One head dropped most of the branch: bring the dropped commits back.
Resolve
Resolve it by hand: rebase onto their head and settle the conflicts.
Implementations§
Trait Implementations§
impl Copy for Choice
impl Eq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Forget for Choice
impl Freeze for Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnsafeUnpin for Choice
impl UnwindSafe for Choice
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.