Skip to main content

git_dir

Function git_dir 

Source
pub fn git_dir(cwd: &Path) -> Result<PathBuf, Error>
Expand description

Path to the .git directory of the repository containing cwd. Always returns an absolute path. Errors if cwd isn’t inside a git repository.