pub enum HookName {
PreCommit,
PreMergeCommit,
PrepareCommitMsg,
CommitMsg,
PostCommit,
PostCheckout,
PostMerge,
PostRewrite,
PreRebase,
}Expand description
Well-known lifecycle hooks that porcelain operations run and report in their outcomes
(for example crate::porcelain::commit::CommitOutcome::hooks_run).
Variants§
PreCommit
.git/hooks/pre-commit or hook.pre-commit.*.
PreMergeCommit
.git/hooks/pre-merge-commit, run before a clean merge records its commit.
PrepareCommitMsg
.git/hooks/prepare-commit-msg, run on the message file before commit-msg; not skipped
by --no-verify.
CommitMsg
.git/hooks/commit-msg or hook.commit-msg.*.
PostCommit
.git/hooks/post-commit or hook.post-commit.*.
PostCheckout
.git/hooks/post-checkout, run after HEAD moves to another commit or branch.
PostMerge
.git/hooks/post-merge, run after a merge or fast-forward updates the work tree.
PostRewrite
.git/hooks/post-rewrite, run after amend or a history rewrite replaces commits.
PreRebase
.git/hooks/pre-rebase, run before a rebase rewrites anything; a non-zero exit refuses
the rebase.
Implementations§
Trait Implementations§
impl Copy for HookName
impl Eq for HookName
impl StructuralPartialEq for HookName
Auto Trait Implementations§
impl Freeze for HookName
impl RefUnwindSafe for HookName
impl Send for HookName
impl Sync for HookName
impl Unpin for HookName
impl UnsafeUnpin for HookName
impl UnwindSafe for HookName
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
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
key and return true if they are equal.