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
Fetch a ref or refs, without updating local branches.
Fields
Exclude
Exclude a single ref.
Fields
AndUpdate
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> PartialOrd for Fetch<'a>
impl<'a> PartialOrd for Fetch<'a>
impl<'a> Copy for Fetch<'a>
impl<'a> Eq for Fetch<'a>
impl<'a> StructuralPartialEq for Fetch<'a>
Auto Trait Implementations§
impl<'a> Freeze for Fetch<'a>
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