pub struct SmudgeArgs {
pub path: Option<PathBuf>,
pub skip: bool,
}Expand description
Git smudge filter that converts pointer in blobs to the actual content
Read a Git LFS pointer file from standard input and write the contents of the corresponding large file to standard output. If needed, download the file’s contents from the Git LFS endpoint. The argument, if provided, is only used for a progress bar.
Smudge is typically run by Git’s smudge filter, configured by the repository’s Git attributes.
In your Git configuration or in a .lfsconfig file, you may set either or both
of lfs.fetchinclude and lfs.fetchexclude to comma-separated lists of paths.
If lfs.fetchinclude is defined, Git LFS pointer files will only be replaced
with the contents of the corresponding Git LFS object file if their path
matches one in that list, and if lfs.fetchexclude is defined, Git LFS pointer
files will only be replaced with the contents of the corresponding Git LFS
object file if their path does not match one in that list. Paths are matched
using wildcard matching as per gitignore(5). Git LFS pointer files that are
not replaced with the contents of their corresponding object files are simply
copied to standard output without change.
Without any options, git lfs smudge outputs the raw Git LFS content to standard output.
Fields§
§path: Option<PathBuf>Working-tree path of the file being smudged (currently unused).
skip: boolSkip automatic downloading of objects on clone or pull.
Equivalent to GIT_LFS_SKIP_SMUDGE=1. Wired up by git lfs install --skip-smudge.
Trait Implementations§
Source§impl Args for SmudgeArgs
impl Args for SmudgeArgs
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 SmudgeArgs
impl FromArgMatches for SmudgeArgs
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.