pub enum NameStatus {
Added,
Deleted,
Modified,
TypeChanged,
Renamed(u8),
Copied(u8),
Unmerged,
}Variants§
Added
Deleted
Modified
TypeChanged
A path whose file type (S_IFMT bits of the mode) changed between the two
sides — regular↔symlink, regular↔gitlink, symlink↔gitlink. git renders this
as T (DIFF_STATUS_TYPE_CHANGED, set by diffcore.h’s
DIFF_PAIR_TYPE_CHANGED before rename/modify resolution). An exec-bit-only
change (100644↔100755) is NOT a typechange — same S_IFMT.
Renamed(u8)
Copied(u8)
Unmerged
An unmerged (conflicted) path: the index holds higher-stage entries.
git emits a standalone U <path> pair (diff_unmerge) for it in
addition to the regular worktree-vs-stage-2 modify.
Implementations§
Trait Implementations§
Source§impl Clone for NameStatus
impl Clone for NameStatus
Source§fn clone(&self) -> NameStatus
fn clone(&self) -> NameStatus
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 NameStatus
Source§impl Debug for NameStatus
impl Debug for NameStatus
impl Eq for NameStatus
Source§impl PartialEq for NameStatus
impl PartialEq for NameStatus
Source§fn eq(&self, other: &NameStatus) -> bool
fn eq(&self, other: &NameStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NameStatus
Auto Trait Implementations§
impl Freeze for NameStatus
impl RefUnwindSafe for NameStatus
impl Send for NameStatus
impl Sync for NameStatus
impl Unpin for NameStatus
impl UnsafeUnpin for NameStatus
impl UnwindSafe for NameStatus
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