pub struct PruneArgs {
pub dry_run: bool,
pub verbose: bool,
pub recent: bool,
pub force: bool,
pub verify_remote: bool,
pub no_verify_remote: bool,
pub verify_unreachable: bool,
pub no_verify_unreachable: bool,
pub when_unverified: String,
}Expand description
Delete old LFS files from local storage
Delete locally stored LFS objects that aren’t reachable from HEAD or any unpushed commit, freeing up disk space.
Fields§
§dry_run: boolDon’t actually delete anything; just report what would have been done.
verbose: boolReport the full detail of what is/would be deleted.
recent: boolIgnore the recent-refs / recent-commits retention windows
when computing what is prunable. Equivalent to setting
lfs.fetchrecentrefsdays and lfs.fetchrecentcommitsdays to
0 for this invocation.
force: boolTreat every pushed object as prunable regardless of the recent-refs / recent-commits / unpushed retention rules. Pointers reachable from HEAD’s tree are still kept.
verify_remote: boolVerify with the remote that prunable objects exist there
before deleting them locally. With this on, an object that
can’t be served by the remote either halts the prune (default)
or is dropped from the delete set (--when-unverified=continue).
Reachable-but-unverified objects are reported as missing on remote:; unreachable objects (orphans not in any commit) are
silently passed through unless --verify-unreachable is also
set. Overrides lfs.pruneverifyremotealways.
no_verify_remote: boolOverride lfs.pruneverifyremotealways=true and skip the
remote verify pass for this invocation.
verify_unreachable: boolWhen --verify-remote is in effect, verify orphan objects
(not reachable from any commit) too. Without this, orphans
pass through verification silently and are still pruned.
Overrides lfs.pruneverifyunreachablealways.
no_verify_unreachable: boolOverride lfs.pruneverifyunreachablealways=true and skip
orphan verification for this invocation.
when_unverified: StringWhat to do when --verify-remote finds objects missing on
the remote. halt (the default) refuses the prune and lists
the missing OIDs; continue drops them from the delete set
and prunes the verified ones.
Trait Implementations§
Source§impl Args for PruneArgs
impl Args for PruneArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PruneArgs
impl FromArgMatches for PruneArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.