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,
},
Exclude {
src: &'a BStr,
},
}Expand description
Sources are local ref names, ref patterns, or revision expressions unless specified otherwise. A non-pattern source with an explicit destination is kept without syntax validation, like Git. Destinations are partial or full ref names on the remote side.
Variants§
AllMatchingBranches
Push all local branches to the matching destination on the remote, which has to exist to be updated.
Fields
Delete
Delete the destination ref.
Matching
Push the object or objects named by src to dst.
Fields
§
src: &'a BStrThe source expression to push. Non-pattern expressions with an explicit destination are not syntax-checked.
Ref patterns contain exactly one *, such as refs/heads/*.
Exclude
Exclude a single ref.
Trait Implementations§
impl<'a> Copy for Push<'a>
impl<'a> Eq for Push<'a>
Source§impl<'a> Ord for Push<'a>
impl<'a> Ord for Push<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Push<'a>
impl<'a> PartialOrd for Push<'a>
impl<'a> StructuralPartialEq for Push<'a>
Auto Trait Implementations§
impl<'a> Freeze for Push<'a>
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> UnsafeUnpin 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