hooks

package
v1.87.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Override string

Override allows tests to control where the hooks directory is.

Functions

func GitPushOptions added in v1.86.0

func GitPushOptions(options []string) []string

GitPushOptions turns a slice of git push option values into a GIT_PUSH_OPTION_COUNT and individual GIT_PUSH_OPTION_0, GIT_PUSH_OPTION_1 etc.

func Path

func Path() string

Path returns the path where the global git hooks are located. If the environment variable GITALY_TESTING_NO_GIT_HOOKS is set to "1", Path will return an empty directory, which has the effect that no Git hooks will run at all.

Types

This section is empty.

Jump to

Keyboard shortcuts

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