pub struct PruneArgs {
pub dry_run: bool,
pub verbose: bool,
}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.
Note: many of upstream’s prune options aren’t yet supported —
--force, --recent, --verify-remote (and the --no-...
variants), --verify-unreachable, --when-unverified, the
recent-refs / recent-commits retention windows, and the
stash / worktree retention rules. The basic
reachable-from-HEAD-or-unpushed walk is implemented and matches
upstream’s default semantics.
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.
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
Append to
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PruneArgs
impl RefUnwindSafe for PruneArgs
impl Send for PruneArgs
impl Sync for PruneArgs
impl Unpin for PruneArgs
impl UnsafeUnpin for PruneArgs
impl UnwindSafe for PruneArgs
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