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
Push all local branches to the matching destination on the remote, which has to exist to be updated.
Fields
Delete
Delete the destination ref or glob pattern, with only a single *
allowed.
Matching
Push a single ref or refspec to a known destination ref.
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/*
.
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> 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> 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)