#[non_exhaustive]pub enum MergeBaseMode {
Best,
All,
Octopus,
}Expand description
Which merge bases RevWalk::merge_bases computes.
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.
Best
git merge-base A B...: the best common ancestor of the first commit and a
hypothetical merge of the others. At most one id.
All
git merge-base --all: every best common ancestor, newest committer date first for
two commits.
Octopus
git merge-base --octopus: the best ancestors common to every commit.
Trait Implementations§
Source§impl Clone for MergeBaseMode
impl Clone for MergeBaseMode
impl Copy for MergeBaseMode
Source§impl Debug for MergeBaseMode
impl Debug for MergeBaseMode
Source§impl Default for MergeBaseMode
impl Default for MergeBaseMode
impl Eq for MergeBaseMode
Source§impl Hash for MergeBaseMode
impl Hash for MergeBaseMode
Source§impl PartialEq for MergeBaseMode
impl PartialEq for MergeBaseMode
impl StructuralPartialEq for MergeBaseMode
Auto Trait Implementations§
impl Forget for MergeBaseMode
impl Freeze for MergeBaseMode
impl RefUnwindSafe for MergeBaseMode
impl Send for MergeBaseMode
impl Sync for MergeBaseMode
impl Unpin for MergeBaseMode
impl UnsafeUnpin for MergeBaseMode
impl UnwindSafe for MergeBaseMode
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.