Skip to main content

git_dir

Function git_dir 

Source
pub fn git_dir() -> Result<PathBuf>
Expand description

Get the .git directory of the current repository.

ยงErrors

Returns an error if not inside a git repository.