pub struct MigrateInfoArgs {Show 13 fields
pub branches: Vec<String>,
pub include: Vec<String>,
pub exclude: Vec<String>,
pub include_ref: Vec<String>,
pub exclude_ref: Vec<String>,
pub everything: bool,
pub above: String,
pub top: usize,
pub pointers: Option<String>,
pub unit: Option<String>,
pub fixup: bool,
pub skip_fetch: bool,
pub remote: Option<String>,
}Expand description
Show information about repository size
Summarize the sizes of file objects present in the Git history, grouped by filename extension. Read-only — no objects or history change.
Existing Git LFS pointers are followed by default (the size of
the referenced objects is totaled in a separate “LFS Objects”
line). Use --pointers=ignore to skip pointers entirely, or
--pointers=no-follow to count the pointer-text size as if the
pointers were regular files (the older Git LFS behavior).
Fields§
§branches: Vec<String>Branches to scan (default: the currently checked-out branch).
References prefixed with ^ are excluded.
include: Vec<String>Only include paths matching this glob (repeatable, comma-delimited).
exclude: Vec<String>Exclude paths matching this glob (repeatable, comma-delimited).
include_ref: Vec<String>Restrict the scan to commits reachable from these refs. Repeatable.
exclude_ref: Vec<String>Exclude commits reachable from these refs. Repeatable.
everything: boolConsider all commits reachable from any local or remote ref.
above: StringOnly count files whose individual filesize is above the given
size (e.g. 1b, 20 MB, 3 TiB).
File-extension groups whose largest file is below --above
don’t appear in the output.
top: usizeDisplay the top N entries, ordered by total file count.
Default 5. When existing Git LFS objects are found, an extra
“LFS Objects” line is output in addition to the top N
entries (unless --pointers changes this).
pointers: Option<String>How to handle existing LFS pointer blobs.
follow (default): summarize referenced objects in a separate
“LFS Objects” line. ignore: skip pointers entirely.
no-follow: count pointer-text size as if pointers were
regular files (the older Git LFS behavior). When --fixup is
given, defaults to ignore.
unit: Option<String>Format byte quantities in this unit.
Valid units: b, kib, mib, gib, tib, pib (IEC) or
b, kb, mb, gb, tb, pb (SI). Auto-scaled when omitted.
fixup: boolInfer --include and --exclude filters per-commit from the
repository’s .gitattributes files.
Counts filepaths that should be tracked by Git LFS but aren’t
yet pointers. Incompatible with explicit --include /
--exclude filters and with --pointers settings other than
ignore. Implies --pointers=ignore if not set.
skip_fetch: boolDon’t refresh the known set of remote references before the scan.
remote: Option<String>Remote to consult (currently a no-op; reserved for the auto-fetch path).
Trait Implementations§
Source§impl Args for MigrateInfoArgs
impl Args for MigrateInfoArgs
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 MigrateInfoArgs
impl FromArgMatches for MigrateInfoArgs
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.