pub enum LinesChangedOnly {
Off,
Diff,
On,
}Available on crate feature
file-changes only.Expand description
An enum to help determine what constitutes a changed file based on the diff contents.
Variants§
Off
File is included regardless of changed lines in the diff.
Use FileFilter to filter files by
extension and/or path.
Diff
Only include files with lines in the diff.
Note, this includes files that only have lines with deletions. But, this excludes files that have no line changes at all (eg. renamed files with unmodified contents, or deleted files, or binary files).
On
Only include files with lines in the diff that have additions.
Note, this excludes files that only have lines with deletions.
So, this is like LinesChangedOnly::Diff but stricter.
Trait Implementations§
Source§impl Clone for LinesChangedOnly
impl Clone for LinesChangedOnly
Source§fn clone(&self) -> LinesChangedOnly
fn clone(&self) -> LinesChangedOnly
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinesChangedOnly
impl Debug for LinesChangedOnly
Source§impl Default for LinesChangedOnly
impl Default for LinesChangedOnly
Source§fn default() -> LinesChangedOnly
fn default() -> LinesChangedOnly
Returns the “default value” for a type. Read more
Source§impl PartialEq for LinesChangedOnly
impl PartialEq for LinesChangedOnly
impl StructuralPartialEq for LinesChangedOnly
Auto Trait Implementations§
impl Freeze for LinesChangedOnly
impl RefUnwindSafe for LinesChangedOnly
impl Send for LinesChangedOnly
impl Sync for LinesChangedOnly
impl Unpin for LinesChangedOnly
impl UnwindSafe for LinesChangedOnly
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