pub fn get_root(repo: &Repository) -> PathBufExpand 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.