Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepoBase ¶
GetRepoBase Returns the location of the .git directory for the current repo by searching up the directory tree until it finds it, gets an error, or reaches the maximum number of iterations
func GetRepoRelativePath ¶
GetRepoRelativePath returns an absolute path for a file relative to the directory that contains the .git directory. If the git repo is in `/home/user/repo/.git` and you pass in "main.go" it will return `/home/user/repo/main.go`. This is determined by finding the .git directory, going up one level, joining the relative path to that directory, and then returning the absolute path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.