Enum gix_refspec::instruction::Fetch
source · pub enum Fetch<'a> {
Only {
src: &'a BStr,
},
Exclude {
src: &'a BStr,
},
AndUpdate {
src: &'a BStr,
dst: &'a BStr,
allow_non_fast_forward: bool,
},
}
Expand description
Any source can either be a ref name (full or partial) or a fully spelled out hex-sha for an object, on the remote side.
Destinations can only be a partial or full ref-names on the local side.
Variants§
Only
Fields
Fetch a ref or refs, without updating local branches.
Exclude
Fields
Exclude a single ref.
AndUpdate
Fields
§
src: &'a BStr
The ref name to fetch on the remote side, or a pattern with a single *
to match against, or the full object hex-name.
Fetch from src
and update the corresponding destination branches in dst
accordingly.
Trait Implementations§
source§impl<'a> Ord for Fetch<'a>
impl<'a> Ord for Fetch<'a>
source§impl<'a> PartialEq for Fetch<'a>
impl<'a> PartialEq for Fetch<'a>
source§impl<'a> PartialOrd for Fetch<'a>
impl<'a> PartialOrd for Fetch<'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 Fetch<'a>
impl<'a> Eq for Fetch<'a>
impl<'a> StructuralPartialEq for Fetch<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Fetch<'a>
impl<'a> Send for Fetch<'a>
impl<'a> Sync for Fetch<'a>
impl<'a> Unpin for Fetch<'a>
impl<'a> UnwindSafe for Fetch<'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