pub enum MigrateCmd {
Import {Show 15 fields
args: Vec<String>,
everything: bool,
include: Vec<String>,
exclude: Vec<String>,
include_ref: Vec<String>,
exclude_ref: Vec<String>,
above: String,
no_rewrite: bool,
message: Option<String>,
yes: bool,
fixup: bool,
skip_fetch: bool,
object_map: Option<PathBuf>,
verbose: bool,
remote: Option<String>,
},
Export {
branches: Vec<String>,
everything: bool,
include: Vec<String>,
exclude: Vec<String>,
include_ref: Vec<String>,
exclude_ref: Vec<String>,
skip_fetch: bool,
object_map: Option<PathBuf>,
verbose: bool,
remote: Option<String>,
yes: bool,
},
Info {},
}Variants§
Import
Rewrite history so files matching the include filter become LFS
pointers. With --no-rewrite, history is preserved and one
new commit is appended on top of HEAD with the named paths
converted in place.
Fields
args: Vec<String>Without --no-rewrite: branches/refs to rewrite (empty =
current branch). With --no-rewrite: working-tree paths
to convert.
include: Vec<String>Convert paths matching this glob (repeatable). Required
unless --above is set or --no-rewrite is given.
no_rewrite: boolDon’t rewrite history. Read named paths from the working tree, convert in place, append one new commit on top of HEAD.
yes: boolSkip the prompt confirming history rewrite. Currently we never prompt, so this is accepted as a no-op for parity with upstream’s CLI surface.
fixup: boolWalk every commit and convert files that should be LFS
pointers (per their commit’s .gitattributes) but
currently aren’t. Mutually exclusive with --include,
--exclude, --no-rewrite.
skip_fetch: boolDon’t fetch missing LFS objects from the remote before the rewrite — accepted as a no-op since we never auto-fetch today.
Export
Inverse of import: rewrite history so LFS pointers become the
raw bytes they reference. Requires the LFS objects to already
be in the local store — git lfs fetch first if not. Pointers
whose objects are missing are left as-is.
Fields
skip_fetch: boolDon’t fetch missing LFS objects from the remote before the rewrite — leave their pointers in place.
Info
Walk history and report file extensions by total size. Read-only — no objects or history change.
Fields
pointers: Option<String>How to handle existing LFS pointer blobs:
follow (default), ignore, or no-follow. Defaults
based on --fixup: ignore with the flag, follow
without.
unit: Option<String>Force the size unit for byte counts (b, kb, mb,
gb, tb, pb). Auto-scaled when omitted.
Trait Implementations§
Source§impl FromArgMatches for MigrateCmd
impl FromArgMatches for MigrateCmd
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for MigrateCmd
impl Subcommand for MigrateCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand