Enum gix_submodule::config::FetchRecurse
source · 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§fn eq(&self, other: &FetchRecurse) -> bool
fn eq(&self, other: &FetchRecurse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FetchRecurse
impl PartialOrd for FetchRecurse
source§fn partial_cmp(&self, other: &FetchRecurse) -> Option<Ordering>
fn partial_cmp(&self, other: &FetchRecurse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FetchRecurse
impl Eq for FetchRecurse
impl StructuralEq for FetchRecurse
impl StructuralPartialEq for FetchRecurse
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more