pub enum DirtyFiles {
Refuse,
Overwrite,
}Expand description
How Plan::apply treats paths whose current state Git cannot recover.
Variants§
Refuse
Fail before any write when the plan touches a dirty path.
Overwrite
Replace or delete dirty paths.
Trait Implementations§
Source§impl Clone for DirtyFiles
impl Clone for DirtyFiles
Source§fn clone(&self) -> DirtyFiles
fn clone(&self) -> DirtyFiles
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 DirtyFiles
Source§impl Debug for DirtyFiles
impl Debug for DirtyFiles
impl Eq for DirtyFiles
Source§impl PartialEq for DirtyFiles
impl PartialEq for DirtyFiles
impl StructuralPartialEq for DirtyFiles
Auto Trait Implementations§
impl Freeze for DirtyFiles
impl RefUnwindSafe for DirtyFiles
impl Send for DirtyFiles
impl Sync for DirtyFiles
impl Unpin for DirtyFiles
impl UnsafeUnpin for DirtyFiles
impl UnwindSafe for DirtyFiles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.