hooks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CommitMsg added in v1.0.0

func CommitMsg(c *context.Context, opts *CommitMsgOpts) error

func PreCommit

func PreCommit(c *context.Context, opts *PreCommitOpts) error

Types

type CommitMsgOpts added in v1.0.0

type CommitMsgOpts struct {
	NoColor         bool
	MessageTempFile string
}

type PreCommitOpts added in v1.0.0

type PreCommitOpts struct {
	NoColor bool
	Files   []string
	All     bool
}

func (*PreCommitOpts) ListFiles added in v1.1.0

func (opts *PreCommitOpts) ListFiles(c *context.Context) ([]string, error)

type Result

type Result struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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