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