Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistingHookIsThirdParty ¶
ExistingHookIsThirdParty checks if a hook file exists that was NOT installed by ai-commit.
func HookScript ¶
func HookScript() string
HookScript returns the shell script content for the prepare-commit-msg hook.
func Install ¶
Install writes the hook script. Returns an error if a third-party hook exists and overwrite is false.
func IsInstalled ¶
IsInstalled checks whether an ai-commit-managed hook exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.