Enum gix_refspec::instruction::Push
source · pub enum Push<'a> {
AllMatchingBranches {
allow_non_fast_forward: bool,
},
Delete {
ref_or_pattern: &'a BStr,
},
Matching {
src: &'a BStr,
dst: &'a BStr,
allow_non_fast_forward: bool,
},
}
Expand description
Note that all sources can either be a ref-name, partial or full, or a rev-spec, unless specified otherwise, on the local side. Destinations can only be a partial or full ref names on the remote side.
Variants§
AllMatchingBranches
Fields
Push all local branches to the matching destination on the remote, which has to exist to be updated.
Delete
Delete the destination ref or glob pattern, with only a single *
allowed.
Matching
Fields
§
src: &'a BStr
The source ref or refspec to push. If pattern, it contains a single *
.
Examples are refnames like HEAD
or refs/heads/main
, or patterns like refs/heads/*
.
Push a single ref or refspec to a known destination ref.
Trait Implementations§
source§impl<'a> Ord for Push<'a>
impl<'a> Ord for Push<'a>
source§impl<'a> PartialEq for Push<'a>
impl<'a> PartialEq for Push<'a>
source§impl<'a> PartialOrd for Push<'a>
impl<'a> PartialOrd for Push<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Copy for Push<'a>
impl<'a> Eq for Push<'a>
impl<'a> StructuralPartialEq for Push<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Push<'a>
impl<'a> Send for Push<'a>
impl<'a> Sync for Push<'a>
impl<'a> Unpin for Push<'a>
impl<'a> UnwindSafe for Push<'a>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more