pub struct ChangedPaths {
pub added: Vec<String>,
pub modified: Vec<String>,
pub deleted: Vec<String>,
}Expand description
Source paths that changed between a git base commit and the current working
tree, classified uniformly as added / modified / deleted. Paths are
repo-relative with / separators and each vector is sorted.
Fields§
§added: Vec<String>Paths present in the working tree but not in the base commit (includes untracked files).
modified: Vec<String>Paths present in both whose content differs.
deleted: Vec<String>Paths present in the base commit but gone from the working tree.
Implementations§
Trait Implementations§
Source§impl Clone for ChangedPaths
impl Clone for ChangedPaths
Source§fn clone(&self) -> ChangedPaths
fn clone(&self) -> ChangedPaths
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 ChangedPaths
impl Debug for ChangedPaths
Source§impl Default for ChangedPaths
impl Default for ChangedPaths
Source§fn default() -> ChangedPaths
fn default() -> ChangedPaths
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChangedPaths
impl PartialEq for ChangedPaths
impl Eq for ChangedPaths
impl StructuralPartialEq for ChangedPaths
Auto Trait Implementations§
impl Freeze for ChangedPaths
impl RefUnwindSafe for ChangedPaths
impl Send for ChangedPaths
impl Sync for ChangedPaths
impl Unpin for ChangedPaths
impl UnsafeUnpin for ChangedPaths
impl UnwindSafe for ChangedPaths
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