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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)