pub enum HookConflict {
Husky,
Lefthook,
PreCommit,
}Expand description
A foreign hook manager klasp recognises and refuses to overwrite.
Detected via public, version-stable fingerprints in the hook file — see
detect_conflict for the exact substrings. The variants are intended
for surfacing in HookWarning::Skipped; the tool accessor returns a
short canonical name ("husky", "lefthook", "pre-commit") that
downstream UIs can render verbatim.
Variants§
Husky
husky — _/husky.sh shim is sourced at the top of the hook.
Lefthook
lefthook — lefthook invocation + the explicit
# DON'T REMOVE THIS LINE (lefthook) marker.
PreCommit
pre-commit framework — # File generated by pre-commit: https://pre-commit.com banner.
Implementations§
Trait Implementations§
Source§impl Clone for HookConflict
impl Clone for HookConflict
Source§fn clone(&self) -> HookConflict
fn clone(&self) -> HookConflict
Returns a duplicate 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 HookConflict
impl Debug for HookConflict
Source§impl PartialEq for HookConflict
impl PartialEq for HookConflict
impl Copy for HookConflict
impl Eq for HookConflict
impl StructuralPartialEq for HookConflict
Auto Trait Implementations§
impl Freeze for HookConflict
impl RefUnwindSafe for HookConflict
impl Send for HookConflict
impl Sync for HookConflict
impl Unpin for HookConflict
impl UnsafeUnpin for HookConflict
impl UnwindSafe for HookConflict
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.