pub enum Tags {
All,
Included,
None,
}
Expand description
Describe how to handle tags when fetching
Variants§
All
Fetch all tags from the remote, even if these are not reachable from objects referred to by our refspecs.
Included
Fetch only the tags that point to the objects being sent. That way, annotated tags that point to an object we receive are automatically transmitted and their refs are created. The same goes for lightweight tags.
None
Do not fetch any tags.
Implementations§
Source§impl Tags
impl Tags
Sourcepub fn to_refspec(&self) -> Option<RefSpecRef<'static>>
Available on crate feature fetch
only.
pub fn to_refspec(&self) -> Option<RefSpecRef<'static>>
fetch
only.Obtain a refspec that determines whether or not to fetch all tags, depending on this variant.
The returned refspec is the default refspec for tags, but won’t overwrite local tags ever.
Trait Implementations§
impl Copy for Tags
impl Eq for Tags
impl StructuralPartialEq for Tags
Auto Trait Implementations§
impl Freeze for Tags
impl RefUnwindSafe for Tags
impl Send for Tags
impl Sync for Tags
impl Unpin for Tags
impl UnwindSafe for Tags
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