diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-18 10:23:44 +0800 |
commit | dd95e2dbfad7f39060dc70f145d0e1478770e454 (patch) | |
tree | 863f9c3a941f21a66fe0af1cbe9a09ae444c8a46 /git_init.go | |
parent | README.md: Mention that anonymous pushes to contrib/ are possible now (diff) | |
download | forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.gz forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.tar.zst forge-dd95e2dbfad7f39060dc70f145d0e1478770e454.zip |
*.go: Add some comments for docs
Diffstat (limited to '')
-rw-r--r-- | git_init.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git_init.go b/git_init.go index fdb5e30..10b0382 100644 --- a/git_init.go +++ b/git_init.go @@ -5,6 +5,8 @@ import ( git_format_config "github.com/go-git/go-git/v5/plumbing/format/config" ) +// git_bare_init_with_default_hooks initializes a bare git repository with the +// forge-deployed hooks directory as the hooksPath. func git_bare_init_with_default_hooks(repo_path string) (err error) { repo, err := git.PlainInit(repo_path, true) if err != nil { |