pub enum HookPolicy {
Run,
SkipVerify,
}Expand description
Whether the verifying hooks run before a commit object is written.
The verifying hooks are pre-commit (or pre-merge-commit for a merge) and commit-msg.
prepare-commit-msg and the post-* hooks run under either policy, as in Git.
Variants§
Run
Run the verifying hooks when installed (default).
SkipVerify
Skip the verifying hooks (--no-verify).
Trait Implementations§
Source§impl Clone for HookPolicy
impl Clone for HookPolicy
impl Copy for HookPolicy
Source§impl Debug for HookPolicy
impl Debug for HookPolicy
Source§impl Default for HookPolicy
impl Default for HookPolicy
impl Eq for HookPolicy
Source§impl PartialEq for HookPolicy
impl PartialEq for HookPolicy
impl StructuralPartialEq for HookPolicy
Auto Trait Implementations§
impl Freeze for HookPolicy
impl RefUnwindSafe for HookPolicy
impl Send for HookPolicy
impl Sync for HookPolicy
impl Unpin for HookPolicy
impl UnsafeUnpin for HookPolicy
impl UnwindSafe for HookPolicy
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.