hook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInstalled = errors.New("bight: hook not installed")

Functions

func Check

func Check() error

Check returns an error if the post-checkout hook is not installed or does not reference the current binary path.

func HooksDir added in v0.0.2

func HooksDir() (string, error)

HooksDir returns the path to the git hooks directory for the repo at the current working directory. In a regular repo this is .git/hooks; in a worktree it resolves to the main repo's hooks dir via commondir.

func Install

func Install() error

func Uninstall

func Uninstall() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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