pub enum FetchDepth {
Depth(NonZeroU32),
Deepen(NonZeroU32),
Unshallow,
}Expand description
Shallow-history control for fetch and clone (--depth, --deepen, --unshallow).
Variants§
Depth(NonZeroU32)
Truncate or establish history at the given absolute depth from each tip
(git fetch --depth N).
Deepen(NonZeroU32)
Deepen an existing shallow repository by the given number of commits
(git fetch --deepen N, wire deepen N + deepen-relative).
Unshallow
Convert a shallow repository into a complete one (git fetch --unshallow).
Implementations§
Source§impl FetchDepth
impl FetchDepth
Sourcepub fn depth(n: u32) -> Option<Self>
pub fn depth(n: u32) -> Option<Self>
Build a FetchDepth::Depth when n > 0.
Sourcepub fn deepen(n: u32) -> Option<Self>
pub fn deepen(n: u32) -> Option<Self>
Build a FetchDepth::Deepen when n > 0.
Trait Implementations§
Source§impl Clone for FetchDepth
impl Clone for FetchDepth
impl Copy for FetchDepth
Source§impl Debug for FetchDepth
impl Debug for FetchDepth
impl Eq for FetchDepth
Source§impl PartialEq for FetchDepth
impl PartialEq for FetchDepth
impl StructuralPartialEq for FetchDepth
Auto Trait Implementations§
impl Freeze for FetchDepth
impl RefUnwindSafe for FetchDepth
impl Send for FetchDepth
impl Sync for FetchDepth
impl Unpin for FetchDepth
impl UnsafeUnpin for FetchDepth
impl UnwindSafe for FetchDepth
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