pub enum HookKind {
PrePush,
PreCommit,
Both,
None,
}Expand description
Which git hook to install.
Variants§
PrePush
git push triggers drep check --diff <remote-oid>. The default.
PreCommit
git commit triggers drep check --staged.
Both
Both pre-commit and pre-push.
None
Neither. drep init writes drep.toml and skips the hooks.
Trait Implementations§
impl Copy for HookKind
impl Eq for HookKind
impl StructuralPartialEq for HookKind
Auto Trait Implementations§
impl Freeze for HookKind
impl RefUnwindSafe for HookKind
impl Send for HookKind
impl Sync for HookKind
impl Unpin for HookKind
impl UnsafeUnpin for HookKind
impl UnwindSafe for HookKind
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.