MCPcopy Create free account
hub / github.com/KyleBanks/go-kit / InstallPreCommitHook

Function InstallPreCommitHook

git/git.go:19–41  ·  view source on GitHub ↗

InstallPreCommitHook takes a string to set as the pre-commit git hook for the .git directory specified by the path provided. The path should be to the parent of the .git directory. For example: /src/github.com/KyleBanks/go-kit

(hook string, path string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestInstallPreCommitHookFunction · 0.85

Calls 1

CreateMethod · 0.80

Tested by 1

TestInstallPreCommitHookFunction · 0.68