MCPcopy Create free account
hub / github.com/douglance/devsql / is_valid_hook_name

Function is_valid_hook_name

crates/vcsql/src/providers/hooks.rs:75–107  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

73}
74
75fn is_valid_hook_name(name: &str) -> bool {
76 matches!(
77 name,
78 "applypatch-msg"
79 | "pre-applypatch"
80 | "post-applypatch"
81 | "pre-commit"
82 | "pre-merge-commit"
83 | "prepare-commit-msg"
84 | "commit-msg"
85 | "post-commit"
86 | "pre-rebase"
87 | "post-checkout"
88 | "post-merge"
89 | "pre-push"
90 | "pre-receive"
91 | "update"
92 | "proc-receive"
93 | "post-receive"
94 | "post-update"
95 | "reference-transaction"
96 | "push-to-checkout"
97 | "pre-auto-gc"
98 | "post-rewrite"
99 | "sendemail-validate"
100 | "fsmonitor-watchman"
101 | "p4-changelist"
102 | "p4-prepare-changelist"
103 | "p4-post-changelist"
104 | "p4-pre-submit"
105 | "post-index-change"
106 )
107}

Callers 1

populateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected