pub struct FetchOptions {
pub depth: Option<u32>,
pub deepen_relative: bool,
pub filter: BlobFilter,
}Expand description
Bounded history and object selection, sharing the ordinary graph-read budget.
Fields§
§depth: Option<u32>Absolute commit depth from the wanted tips (1..=2147483647). None preserves client shallow boundaries. A depth request retransmits its bounded closure so shallow haves cannot hide newly requested history. A relative request without client boundaries keeps common-history pruning.
deepen_relative: boolAdd depth to the nearest client boundary measured from wanted tips
(Git 2.55). Inert without a depth; unrelated client boundaries are preserved.
Without a boundary in wanted history, select its complete closure.
filter: BlobFilterApply the object policy after reachability and common-history exclusion. Filtering does not change commit parents or tree bodies. The receiving host must retain Git’s shallow/promisor metadata when importing the pack.
Implementations§
Source§impl FetchOptions
impl FetchOptions
Sourcepub const fn deepens_history(self, has_client_boundaries: bool) -> bool
pub const fn deepens_history(self, has_client_boundaries: bool) -> bool
Shallow haves cannot exclude the newly requested history. A relative request from a complete client preserves ordinary common exclusion.
Trait Implementations§
Source§impl Clone for FetchOptions
impl Clone for FetchOptions
Source§fn clone(&self) -> FetchOptions
fn clone(&self) -> FetchOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more