hooks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: MIT 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
}

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