Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotInstalled = errors.New("bight: hook not installed")
Functions ¶
func Check ¶
func Check() error
Check returns an error if the post-checkout hook is not installed or does not reference the current binary path.
func HooksDir ¶ added in v0.0.2
HooksDir returns the path to the git hooks directory for the repo at the current working directory. In a regular repo this is .git/hooks; in a worktree it resolves to the main repo's hooks dir via commondir.
func MainWorktreeRoot ¶ added in v0.3.0
MainWorktreeRoot returns the working-tree directory of the main worktree for the repo at the current working directory. In a regular repo this is the same directory; in a linked worktree it resolves to the main repo's working directory via commondir.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.