Skip to main content

git_common_dir

Function git_common_dir 

Source
pub fn git_common_dir(path: &Path) -> Result<PathBuf>
Expand description

Absolute path of the git common-dir for path (bare store / .git dir).

§Errors

Returns Err when path is not inside a git repository.