hooks

package
v0.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: EUPL-1.2 Imports: 1 Imported by: 0

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

View Source
var CommitMsgHook string

CommitMsgHook contains the embedded commit-msg hook script for local repositories.

View Source
var CommitMsgPlugin string

CommitMsgPlugin contains the embedded commit-msg plugin script for global hooks.

View Source
var DispatcherTemplate string

DispatcherTemplate contains the embedded dispatcher script template. The string HOOK_TYPE should be replaced with the actual hook type at runtime.

View Source
var PrePushHook string

PrePushHook contains the embedded pre-push hook script for local repositories.

View Source
var PrePushPlugin string

PrePushPlugin contains the embedded pre-push plugin script for global hooks.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL