Documentation
¶
Overview ¶
Package hooks provides embedded git hook scripts.
The scripts in this package are embedded into the gommitlint binary at build time using go:embed directives. This allows the hooks to be version controlled, linted with shellcheck, and formatted with shfmt while still being bundled into the binary with zero runtime dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CommitMsgHook string
CommitMsgHook contains the embedded commit-msg hook script for local repositories.
var CommitMsgPlugin string
CommitMsgPlugin contains the embedded commit-msg plugin script for global hooks.
var DispatcherTemplate string
DispatcherTemplate contains the embedded dispatcher script template. The string HOOK_TYPE should be replaced with the actual hook type at runtime.
var PrePushHook string
PrePushHook contains the embedded pre-push hook script for local repositories.
var PrePushPlugin string
PrePushPlugin contains the embedded pre-push plugin script for global hooks.
Functions ¶
This section is empty.
Types ¶
This section is empty.