pub enum FetchRecurse {
OnDemand,
Always,
Never,
}
Expand description
Determine how to recurse into this module from the superproject when fetching.
Generally, a fetch is only performed if the submodule commit referenced by the superproject isn’t already present in the submodule repository.
Note that when unspecified, the fetch.recurseSubmodules
configuration variable should be used instead.
Variants§
OnDemand
Fetch only changed submodules.
Always
Fetch all populated submodules, changed or not.
This skips the work needed to determine whether a submodule has changed in the first place, but may work more as some fetches might not be necessary.
Never
Submodules are never fetched.
Implementations§
source§impl FetchRecurse
impl FetchRecurse
Trait Implementations§
source§impl Clone for FetchRecurse
impl Clone for FetchRecurse
source§fn clone(&self) -> FetchRecurse
fn clone(&self) -> FetchRecurse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FetchRecurse
impl Debug for FetchRecurse
source§impl Default for FetchRecurse
impl Default for FetchRecurse
source§fn default() -> FetchRecurse
fn default() -> FetchRecurse
Returns the “default value” for a type. Read more
source§impl Hash for FetchRecurse
impl Hash for FetchRecurse
source§impl Ord for FetchRecurse
impl Ord for FetchRecurse
source§fn cmp(&self, other: &FetchRecurse) -> Ordering
fn cmp(&self, other: &FetchRecurse) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FetchRecurse
impl PartialEq for FetchRecurse
source§impl PartialOrd for FetchRecurse
impl PartialOrd for FetchRecurse
impl Copy for FetchRecurse
impl Eq for FetchRecurse
impl StructuralPartialEq for FetchRecurse
Auto Trait Implementations§
impl Freeze for FetchRecurse
impl RefUnwindSafe for FetchRecurse
impl Send for FetchRecurse
impl Sync for FetchRecurse
impl Unpin for FetchRecurse
impl UnwindSafe for FetchRecurse
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)