pub enum RemovalMode {
Mark,
Prune,
}
Expand description
Determines how we deal with the removal of unconflicted entries if these are superseded by their conflicted counterparts, i.e. stage 1, 2 and 3.
Variants§
Mark
Add the gix_index::entry::Flags::REMOVE
flag to entries that are to be removed.
Note that this also means that unconflicted and conflicted stages will be visible in the same index. When written, entries marked for removal will automatically be ignored. However, this also means that one must not use the in-memory index or take specific care of entries that are marked for removal.
Prune
Entries marked for removal (even those that were already marked) will be removed from memory at the end.
This is an expensive step that leaves a consistent index, ready for use.
Trait Implementations§
Source§impl Clone for RemovalMode
impl Clone for RemovalMode
Source§fn clone(&self) -> RemovalMode
fn clone(&self) -> RemovalMode
Returns a copy 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 RemovalMode
impl Debug for RemovalMode
Source§impl Hash for RemovalMode
impl Hash for RemovalMode
Source§impl Ord for RemovalMode
impl Ord for RemovalMode
Source§fn cmp(&self, other: &RemovalMode) -> Ordering
fn cmp(&self, other: &RemovalMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RemovalMode
impl PartialEq for RemovalMode
Source§impl PartialOrd for RemovalMode
impl PartialOrd for RemovalMode
impl Copy for RemovalMode
impl Eq for RemovalMode
impl StructuralPartialEq for RemovalMode
Auto Trait Implementations§
impl Freeze for RemovalMode
impl RefUnwindSafe for RemovalMode
impl Send for RemovalMode
impl Sync for RemovalMode
impl Unpin for RemovalMode
impl UnwindSafe for RemovalMode
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