pub struct FsckArgs {
pub refspec: Option<String>,
pub objects: bool,
pub pointers: bool,
pub dry_run: bool,
}Expand description
Check Git LFS files for consistency
Check all Git LFS files in the current HEAD for consistency.
Corrupted files are moved to .git/lfs/bad.
A single committish may be given to inspect that commit instead of
HEAD. The <a>..<b> range form from upstream is not yet supported
— only a single ref is accepted. With no argument, HEAD is
examined.
The default is to perform all checks. lfs.fetchexclude is also
not yet honored on this command; objects whose paths match the
exclude list will still be checked.
Fields§
§refspec: Option<String>Ref to scan. Defaults to HEAD.
objects: boolCheck that each object in HEAD matches its expected hash and that each object exists on disk.
pointers: boolCheck that each pointer is canonical and that each file which should be stored as a Git LFS file is so stored.
dry_run: boolPerform checks, but do not move any corrupted files to
.git/lfs/bad.
Trait Implementations§
Source§impl Args for FsckArgs
impl Args for FsckArgs
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 FsckArgs
impl FromArgMatches for FsckArgs
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.