Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGitRepoRootByTraversal ¶
FindGitRepoRootByTraversal finds the Git repository root for the given directory by manually checking for a .git directory.
func FindGitRepoRootUsingGit ¶
func IsAGitRepository ¶
IsAGitRepository checks if the given directory or any of its parent directories up to `levels` is a git repository. It returns the git root directory, the subdirectory passed relative to the git root, and any error encountered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.