insideGitRepo

Checks to see if the given path is inside a git repo. It does this by checking for the '.git' directory in the given directory and every parent directory.

nothrow @nogc
string
insideGitRepo
(
string path = getcwd()
)

Return Value

Type: string

The path to the root of the git repo, or null if not inside a git repo.

Meta