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> PartialOrd for Push<'a>
impl<'a> PartialOrd for Push<'a>
impl<'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