pub enum ForDeletionMode {
IgnoredDirectoriesCanHideNestedRepositories,
FindNonBareRepositoriesInIgnoredDirectories,
FindRepositoriesInIgnoredDirectories,
}
Expand description
When the walk is for deletion, assure that we don’t collapse directories that have precious files in them, and otherwise assure that no entries are observable that shouldn’t be deleted.
Variants§
IgnoredDirectoriesCanHideNestedRepositories
We will stop traversing into ignored directories which may save a lot of time, but also may include nested repositories which might end up being deleted.
FindNonBareRepositoriesInIgnoredDirectories
Instead of skipping over ignored directories entirely, we will dive in and find ignored non-bare repositories
so these are emitted separately and prevent collapsing. These are assumed to be a directory with .git
inside.
Only relevant when ignored entries are emitted.
FindRepositoriesInIgnoredDirectories
This is a more expensive form of the above variant as it finds all repositories, bare or non-bare.
Trait Implementations§
Source§impl Clone for ForDeletionMode
impl Clone for ForDeletionMode
Source§fn clone(&self) -> ForDeletionMode
fn clone(&self) -> ForDeletionMode
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 ForDeletionMode
impl Debug for ForDeletionMode
Source§impl Default for ForDeletionMode
impl Default for ForDeletionMode
Source§fn default() -> ForDeletionMode
fn default() -> ForDeletionMode
Returns the “default value” for a type. Read more
Source§impl Hash for ForDeletionMode
impl Hash for ForDeletionMode
Source§impl Ord for ForDeletionMode
impl Ord for ForDeletionMode
Source§fn cmp(&self, other: &ForDeletionMode) -> Ordering
fn cmp(&self, other: &ForDeletionMode) -> 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 ForDeletionMode
impl PartialEq for ForDeletionMode
Source§impl PartialOrd for ForDeletionMode
impl PartialOrd for ForDeletionMode
impl Copy for ForDeletionMode
impl Eq for ForDeletionMode
impl StructuralPartialEq for ForDeletionMode
Auto Trait Implementations§
impl Freeze for ForDeletionMode
impl RefUnwindSafe for ForDeletionMode
impl Send for ForDeletionMode
impl Sync for ForDeletionMode
impl Unpin for ForDeletionMode
impl UnwindSafe for ForDeletionMode
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