pub enum HookName {
PreCommit,
CommitMsg,
PostCommit,
PostCheckout,
PostMerge,
PostRewrite,
}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.*.
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.
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
Mutably borrows from an owned value. Read more