pub enum DiffMode {
Head,
Staged,
Branch(String),
Commit(String),
}Expand description
Get the list of files changed according to git.
Supports multiple diff modes:
head: Changes in the current working tree vs HEAD (uncommitted changes)staged: Only staged changes (git diff –cached)branch:name: Changes vs a specific branch (e.g.,branch:main)commit:sha: Changes since a specific commit
Variants§
Head
Uncommitted changes (working tree + staged vs HEAD).
Staged
Only staged changes.
Branch(String)
Changes compared to a specific branch.
Commit(String)
Changes since a specific commit.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffMode
impl RefUnwindSafe for DiffMode
impl Send for DiffMode
impl Sync for DiffMode
impl Unpin for DiffMode
impl UnsafeUnpin for DiffMode
impl UnwindSafe for DiffMode
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