pub struct ChangeCounters {
pub untracked: usize,
pub unstaged: usize,
pub staged: usize,
pub conflicted: usize,
}
Expand description
Track changes in the working tree and index (staged area).
Fields§
§untracked: usize
The number of untracked files (not in the index).
unstaged: usize
The number of files that have been modified, but haven’t been staged.
staged: usize
The number of files that have been staged.
conflicted: usize
The number of files with conflicts.
Trait Implementations§
Source§impl Debug for ChangeCounters
impl Debug for ChangeCounters
Source§impl Default for ChangeCounters
impl Default for ChangeCounters
Source§fn default() -> ChangeCounters
fn default() -> ChangeCounters
Returns the “default value” for a type. Read more
Source§impl ShellVars for ChangeCounters
impl ShellVars for ChangeCounters
Source§fn write_to_shell<W: Write>(&self, out: &ShellWriter<W>)
fn write_to_shell<W: Write>(&self, out: &ShellWriter<W>)
Write
self
to the shell writer out
.Auto Trait Implementations§
impl Freeze for ChangeCounters
impl RefUnwindSafe for ChangeCounters
impl Send for ChangeCounters
impl Sync for ChangeCounters
impl Unpin for ChangeCounters
impl UnwindSafe for ChangeCounters
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