Skip to main content

MigrateInfoArgs

Struct MigrateInfoArgs 

Source
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: bool

Consider all commits reachable from any local or remote ref.

§above: String

Only 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: usize

Display 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: bool

Infer --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: bool

Don’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

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl FromArgMatches for MigrateInfoArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.