(root: &Path)
| 2804 | } |
| 2805 | |
| 2806 | pub(crate) fn open_git(root: &Path) -> CliResult<GitRepository> { |
| 2807 | GitRepository::open(root).map_err(|error| git_error(format!("cannot open repository: {error}"))) |
| 2808 | } |
| 2809 | |
| 2810 | fn current_attached_git_branch(git: &GitRepository) -> CliResult<String> { |
| 2811 | match observe_head(git).map_err(observation_error)? { |
no test coverage detected