Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(opts *Options, args *InstallArgs) error
Install installs the hooks from config file to the .git/hooks.
func Uninstall ¶
func Uninstall(opts *Options, args *UninstallArgs) error
Types ¶
type InstallArgs ¶
type InstallArgs struct {
Force, Aggressive bool
}
type Lefthook ¶
type Lefthook struct {
// Since we need to support deprecated global options Force and Aggressive
// we need to store these fields. After their removal we need just to copy fs.
*Options
// contains filtered or unexported fields
}
func (*Lefthook) Install ¶
func (l *Lefthook) Install(args *InstallArgs) error
func (*Lefthook) Uninstall ¶
func (l *Lefthook) Uninstall(args *UninstallArgs) error
type UninstallArgs ¶
type UninstallArgs struct {
KeepConfiguration, Aggressive bool
}
Click to show internal directories.
Click to hide internal directories.