Skip to content

Commit 8c251f6

Browse files
refactor(hook): add comment to WriteHooks
1 parent 2b1b8f8 commit 8c251f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hook/hook.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import (
1212
// commitMsgHook represent commit-msg hook file name
1313
const commitMsgHook = "commit-msg"
1414

15-
func WriteHooks(outDir string, confPath string) (retErr error) {
15+
// WriteHooks write git hooks to the given outDir
16+
func WriteHooks(outDir, confPath string) (retErr error) {
1617
hookFilePath := filepath.Join(outDir, commitMsgHook)
1718
// commit-msg needs to be executable
1819
file, err := os.OpenFile(hookFilePath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0700)

0 commit comments

Comments
 (0)