git_dir

Function git_dir 

Source
pub fn git_dir() -> FnOptionArg
Expand description

Show $GIT_DIR if defined. Otherwise show the path to the .git directory. The path shown, when relative, is relative to the current working directory. If $GIT_DIR is not defined and the current directory is not detected to lie in a Git repository or work tree print a message to stderr and exit with nonzero status. –git-dir