pub enum BaseSource {
Flag,
Config,
Remote,
Unresolved,
}Expand description
Where a resolved base branch came from — surfaced by logoff --verbose.
Variants§
Flag
Explicit CLI --base-branch.
Config
git config gkit.baseBranch.
Remote
Derived from a remote-tracking branch (origin/main, else origin/master).
Unresolved
Could not be determined from any source.
Trait Implementations§
Source§impl Clone for BaseSource
impl Clone for BaseSource
Source§fn clone(&self) -> BaseSource
fn clone(&self) -> BaseSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BaseSource
impl Debug for BaseSource
Source§impl PartialEq for BaseSource
impl PartialEq for BaseSource
Source§fn eq(&self, other: &BaseSource) -> bool
fn eq(&self, other: &BaseSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BaseSource
impl Eq for BaseSource
impl StructuralPartialEq for BaseSource
Auto Trait Implementations§
impl Freeze for BaseSource
impl RefUnwindSafe for BaseSource
impl Send for BaseSource
impl Sync for BaseSource
impl Unpin for BaseSource
impl UnsafeUnpin for BaseSource
impl UnwindSafe for BaseSource
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.