pub enum DefaultBase {
Commit(String),
NoRepository,
NoMergeBase,
}Expand description
Outcome of resolving the no-flag default base against the fixed v0 branch main.
Variants§
Commit(String)
Merge base of HEAD and main, as a single trimmed Git stdout line.
NoRepository
root is not inside a Git repository.
NoMergeBase
No merge base exists between HEAD and main.
Trait Implementations§
Source§impl Debug for DefaultBase
impl Debug for DefaultBase
impl Eq for DefaultBase
Source§impl PartialEq for DefaultBase
impl PartialEq for DefaultBase
impl StructuralPartialEq for DefaultBase
Auto Trait Implementations§
impl Freeze for DefaultBase
impl RefUnwindSafe for DefaultBase
impl Send for DefaultBase
impl Sync for DefaultBase
impl Unpin for DefaultBase
impl UnsafeUnpin for DefaultBase
impl UnwindSafe for DefaultBase
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<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.