Function get_repo_root
Source pub fn get_repo_root() -> Result<String>
Expand description
Returns the absolute path to the repository root.
§Errors
Returns an error if not in a Git repository or if the path cannot be determined.
§Examples
use rusty_commit::git;
let root = git::get_repo_root().unwrap();
println!("Repository root: {}", root);