Documentation ¶
Index ¶
Constants ¶
const ( HookPrepareCommitMessageTemplate = "prepare-commit-msg" CommitMessageTemplate = "commit-msg.tmpl" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (*Command) DiffFiles ¶
Diff compares the differences between two sets of data. It returns a string representing the differences and an error. If there are no differences, it returns an empty string and an error.
func (*Command) GitDir ¶
GitDir to show the (by default, absolute) path of the git directory of the working tree.
func (*Command) InstallHook ¶
func (*Command) UninstallHook ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an interface that specifies instrumentation configuration options.
func WithDiffUnified ¶
WithDiffUnified is a function that generate diffs with <n> lines of context instead of the usual three.
func WithEnableAmend ¶
WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.
func WithExcludeList ¶
WithExcludeList returns an Option that sets the excludeList field of a config object to the given value.