crab_hooks/
hook_types.rs

1// Documentation: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
2use strum_macros::{Display, EnumString};
3
4#[derive(Display, Clone, EnumString, Debug, PartialEq, Eq)]
5#[strum(serialize_all = "kebab-case")]
6pub enum HookTypes {
7    PreCommit,
8    PrepareCommitMsg,
9    CommitMsg,
10    PostCommit,
11    ApplyPatchMsg,  // Email based
12    PreApplyPatch,  // Email based
13    PostApplyPatch, // Email based
14    PreRebase,
15    PostRewrite,
16    PostCheckout,
17    PostMerge,
18    PrePush,
19    PreAutoGC,   // Pre Garbage collection
20    PreReceive,  // Server side
21    Update,      // Server side
22    PostReceive, // Server side
23}