Enum git_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
allow_non_fast_forward: bool
If true, allow non-fast-forward updates of the matched destination branch.
Push all local branches to the matching destination on the remote, which has to exist to be updated.
Delete
Fields
ref_or_pattern: &'a BStr
The reference or pattern to delete on the remote.
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 *
.
dst: &'a BStr
The ref to update with the object from src
. If src
is a pattern, this is a pattern too.
allow_non_fast_forward: bool
If true, allow non-fast-forward updates of dest
.
Push a single ref or refspec to a known destination ref.
Trait Implementations
sourceimpl<'a> Ord for Push<'a>
impl<'a> Ord for Push<'a>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<Push<'a>> for Push<'a>
impl<'a> PartialEq<Push<'a>> for Push<'a>
sourceimpl<'a> PartialOrd<Push<'a>> for Push<'a>
impl<'a> PartialOrd<Push<'a>> for Push<'a>
sourcefn partial_cmp(&self, other: &Push<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Push<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<'a> Copy for Push<'a>
impl<'a> Eq for Push<'a>
impl<'a> StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more