pub struct DiffArgs {Show 16 fields
pub base: Option<String>,
pub head: Option<String>,
pub merge_base: Option<String>,
pub staged: bool,
pub working_tree: bool,
pub json: bool,
pub csv: bool,
pub markdown: bool,
pub by_file: bool,
pub summary_only: bool,
pub max_code_added: Option<usize>,
pub max_code_added_lang: Vec<String>,
pub max_total_changed: Option<usize>,
pub max_files: Option<usize>,
pub fail_on_threshold: bool,
pub extensions: Option<String>,
}Fields§
§base: Option<String>Base git rev (commit, tag, or ref)
head: Option<String>Head git rev (defaults to HEAD)
merge_base: Option<String>Use merge-base between HEAD and this ref as base
staged: boolCompare HEAD vs index (staged changes)
working_tree: boolCompare index vs working tree (unstaged changes)
json: boolOutput JSON
csv: boolOutput CSV
markdown: boolOutput Markdown
by_file: boolInclude per-file detail
summary_only: boolSummary only: hide per-file details in outputs
max_code_added: Option<usize>Fail if code added exceeds this threshold
max_code_added_lang: Vec<String>Per-language max code thresholds, e.g. –max-code-added-lang Rust:500,Python:100
max_total_changed: Option<usize>Fail if absolute net total changed exceeds this threshold
max_files: Option<usize>Fail if number of changed files exceeds this threshold
fail_on_threshold: boolExplicitly fail (non-zero exit) when any threshold is exceeded (thresholds otherwise also fail)
extensions: Option<String>Limit by comma-separated extensions (no dots)
Trait Implementations§
Source§impl Args for DiffArgs
impl Args for DiffArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for DiffArgs
impl FromArgMatches for DiffArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Forget for DiffArgs
impl Freeze for DiffArgs
impl RefUnwindSafe for DiffArgs
impl Send for DiffArgs
impl Sync for DiffArgs
impl Unpin for DiffArgs
impl UnsafeUnpin for DiffArgs
impl UnwindSafe for DiffArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more