pub struct FetchPruneConfig {
pub fetch_recent_refs_days: i64,
pub fetch_recent_refs_include_remotes: bool,
pub fetch_recent_commits_days: i64,
pub fetch_recent_always: bool,
pub prune_offset_days: i64,
pub prune_verify_remote_always: bool,
pub prune_verify_unreachable_always: bool,
pub prune_remote_name: String,
}Expand description
Configuration for fetch-recent and prune retention. Built once per
command via FetchPruneConfig::from_repo; pass by reference into
the scanners + retention logic that consumes it.
Fields§
§fetch_recent_refs_days: i64Days prior to current date for which (local) refs other than
HEAD will be fetched with --recent (default 7, 0 = HEAD only).
fetch_recent_refs_include_remotes: boolApply Self::fetch_recent_refs_days to remote-tracking refs
from the fetch source as well (default true).
fetch_recent_commits_days: i64Days prior to the latest commit on each kept ref to also fetch previous LFS pre-images (default 0 = at-ref only).
fetch_recent_always: boolIf true, fetch acts as if --recent were always passed.
prune_offset_days: i64Days added to the fetch-recent windows when computing prune retention. Data outside the combined window can be pruned (default 3).
prune_verify_remote_always: boolAlways verify with the remote before pruning reachable objects.
prune_verify_unreachable_always: boolWhen verifying, also verify unreachable objects (default false).
prune_remote_name: StringRemote name used for unpushed checks and verify queries.
Defaults to origin if lfs.pruneremotetocheck isn’t set.
Implementations§
Trait Implementations§
Source§impl Clone for FetchPruneConfig
impl Clone for FetchPruneConfig
Source§fn clone(&self) -> FetchPruneConfig
fn clone(&self) -> FetchPruneConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FetchPruneConfig
impl Debug for FetchPruneConfig
Source§impl PartialEq for FetchPruneConfig
impl PartialEq for FetchPruneConfig
Source§fn eq(&self, other: &FetchPruneConfig) -> bool
fn eq(&self, other: &FetchPruneConfig) -> bool
self and other values to be equal, and is used by ==.