Skip to main content

git_info

Function git_info 

Source
pub fn git_info(dir: &Path) -> (Option<PathBuf>, Option<String>)
Expand description

Find the git repository root and current branch for dir by reading .git/HEAD directly (no subprocess).