hooks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const COMMIT_MSG_HOOK = "commit-msg"
View Source
const FAILED_EXIT_CODE = 65 // EX_DATAERR - hooks didn't pass
View Source
const NOTHING_STAGED_EXIT_CODE = 66 // EX_NOINPUT
View Source
const PRE_COMMIT_HOOK = "pre-commit"
View Source
const PRE_COMMIT_MUTATING_HOOK = "pre-commit-mutating"

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitMsg added in v1.0.0

type CommitMsg struct {
	Repo *repo.Repo
}

func (*CommitMsg) Run added in v1.5.0

func (hook *CommitMsg) Run(messageFile string) error

type Opts added in v1.5.0

type Opts struct {
	NoColor bool
}

type PreCommit

type PreCommit struct {
	Repo *repo.Repo
	Opts
}

func (*PreCommit) Run added in v1.5.0

func (hook *PreCommit) Run(files []string) error

Jump to

Keyboard shortcuts

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