pub enum Default {
Nothing,
Current,
Upstream,
Simple,
Matching,
}Expand description
All possible values of push.default.
Variants§
Nothing
Do not push anything unless a refspec is provided explicitly.
This is for safety.
Current
Push the current branch to update a remote branch with the same name.
Upstream
Push the current branch to the branch it would fetch from and merge with,
i.e. what is configured in branch.<name>.merge, retrievable with
the @{upstream} refspec.
Simple
Push the current branch with the same name to the remote.
This is the same as Current, but fails if
branch.<name>.merge is set to a branch that is named differently.
Matching
Push all branches to their similarly named counterpart on the remote.
Trait Implementations§
Source§impl Ord for Default
impl Ord for Default
Source§impl PartialOrd for Default
impl PartialOrd for Default
impl Copy for Default
impl Eq for Default
impl StructuralPartialEq for Default
Auto Trait Implementations§
impl Freeze for Default
impl RefUnwindSafe for Default
impl Send for Default
impl Sync for Default
impl Unpin for Default
impl UnsafeUnpin for Default
impl UnwindSafe for Default
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> Comparable<K> for Q
impl<Q, K> Comparable<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.