pub enum PullMode {
FfOnly,
Merge,
Rebase,
}Expand description
How pull integrates upstream commits when a fast-forward is not possible.
Variants§
FfOnly
Refuse when diverged history would require a merge commit.
Merge
Merge (or fast-forward when possible).
Rebase
Rebase local commits onto the upstream tip via the history engine, in one line like
git pull --rebase: merge commits on the branch are dropped.
Trait Implementations§
impl Copy for PullMode
impl Eq for PullMode
impl StructuralPartialEq for PullMode
Auto Trait Implementations§
impl Freeze for PullMode
impl RefUnwindSafe for PullMode
impl Send for PullMode
impl Sync for PullMode
impl Unpin for PullMode
impl UnsafeUnpin for PullMode
impl UnwindSafe for PullMode
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.