pub struct UninstallArgs {
pub mode: Option<String>,
pub local: bool,
pub worktree: bool,
pub system: bool,
pub file: Option<PathBuf>,
pub skip_repo: bool,
}Expand description
Remove Git LFS configuration
Remove the lfs clean and smudge filters from the global Git config,
and (when run from inside a Git repository) uninstall the Git LFS
pre-push hook. Hooks that don’t match what we would write are left
untouched.
Fields§
§mode: Option<String>Optional mode. With hooks, removes only the LFS git hooks and
leaves the filter config alone (the inverse of --skip-repo).
local: boolRemove the lfs smudge and clean filters from the local
repository’s git config, instead of the global git config
(~/.gitconfig).
worktree: boolRemove the lfs smudge and clean filters from the current
working tree’s git config, instead of the global git config
(~/.gitconfig) or local repository’s git config
($GIT_DIR/config).
If multiple working trees are in use, the Git config extension
worktreeConfig must be enabled to use this option. If only one
working tree is in use, --worktree has the same effect as
--local. Available only on Git v2.20.0 or later.
system: boolRemove the lfs smudge and clean filters from the system git
config, instead of the global git config (~/.gitconfig).
file: Option<PathBuf>Remove the lfs smudge and clean filters from the Git
configuration file specified by <PATH>.
skip_repo: boolSkip cleanup of the local repo.
Use if you want to uninstall the global LFS filters but not make changes to the current repo.
Trait Implementations§
Source§impl Args for UninstallArgs
impl Args for UninstallArgs
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 UninstallArgs
impl FromArgMatches for UninstallArgs
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.