get_root

Function get_root 

Source
pub fn get_root(repo: &Repository) -> PathBuf
Expand description

Absolute working tree root path for repository

Derived from Repository::commondir with any trailing .git removed (non‑bare repos). Bare repositories return their directory path unchanged.