#[non_exhaustive]pub enum SubmoduleIgnoreMode {
None,
Untracked,
Dirty,
All,
}Expand description
Submodule ignore mode for worktree gitlink comparisons (Git --ignore-submodules,
diff.ignoreSubmodules, submodule.<name>.ignore).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Report new submodule commits and dirty tracked content inside the checkout.
Untracked
Ignore untracked paths inside the submodule only.
Dirty
Ignore dirty worktrees when the recorded gitlink commit matches the checkout HEAD.
All
Omit gitlink worktree drift when the checkout HEAD matches the recorded gitlink, and also
omit a moved submodule HEAD (Git ignore=all).
Trait Implementations§
Source§impl Clone for SubmoduleIgnoreMode
impl Clone for SubmoduleIgnoreMode
impl Copy for SubmoduleIgnoreMode
Source§impl Debug for SubmoduleIgnoreMode
impl Debug for SubmoduleIgnoreMode
Source§impl Default for SubmoduleIgnoreMode
impl Default for SubmoduleIgnoreMode
impl Eq for SubmoduleIgnoreMode
Source§impl PartialEq for SubmoduleIgnoreMode
impl PartialEq for SubmoduleIgnoreMode
impl StructuralPartialEq for SubmoduleIgnoreMode
Auto Trait Implementations§
impl Forget for SubmoduleIgnoreMode
impl Freeze for SubmoduleIgnoreMode
impl RefUnwindSafe for SubmoduleIgnoreMode
impl Send for SubmoduleIgnoreMode
impl Sync for SubmoduleIgnoreMode
impl Unpin for SubmoduleIgnoreMode
impl UnsafeUnpin for SubmoduleIgnoreMode
impl UnwindSafe for SubmoduleIgnoreMode
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.