pub enum ChangeStatus {
Tracked {
index: Option<ColumnChange>,
worktree: Option<ColumnChange>,
},
Conflicted,
Untracked,
Ignored,
}Expand description
How one path differs from HEAD/index.
Porcelain XY is a MATRIX: a path can be staged-modified AND
unstaged-modified at once (MM), so tracked state carries both columns
instead of collapsing them into one variant.
Variants§
Tracked
A tracked path; at least one column is set.
Fields
§
index: Option<ColumnChange>The index (staged) column, X.
§
worktree: Option<ColumnChange>The worktree (unstaged) column, Y.
Conflicted
An unmerged path (U in either column, AA, DD). Dirty, fail-safe.
Untracked
??.
Ignored
!! (listed only with include_ignored).
Trait Implementations§
Source§impl Clone for ChangeStatus
impl Clone for ChangeStatus
Source§fn clone(&self) -> ChangeStatus
fn clone(&self) -> ChangeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChangeStatus
Source§impl Debug for ChangeStatus
impl Debug for ChangeStatus
impl Eq for ChangeStatus
Source§impl PartialEq for ChangeStatus
impl PartialEq for ChangeStatus
Source§fn eq(&self, other: &ChangeStatus) -> bool
fn eq(&self, other: &ChangeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangeStatus
Auto Trait Implementations§
impl Freeze for ChangeStatus
impl RefUnwindSafe for ChangeStatus
impl Send for ChangeStatus
impl Sync for ChangeStatus
impl Unpin for ChangeStatus
impl UnsafeUnpin for ChangeStatus
impl UnwindSafe for ChangeStatus
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