Documentation
¶
Overview ¶
Package gitutil provides shared Git repository helpers used across multiple internal packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGitRepo ¶
IsGitRepo reports whether root is the root of a git repository.
It accepts both forms of the .git entry:
- a directory: standard single-worktree repository
- a regular file: linked worktree created by "git worktree add" (the file contains a "gitdir: ..." pointer to the main repo)
Anything other than a stat error at <root>/.git is treated as a valid git repo — downstream git commands will surface a more precise error if the entry is malformed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.