(root: &Path)
| 2848 | } |
| 2849 | |
| 2850 | pub(crate) fn open_git(root: &Path) -> CliResult<GitRepository> { |
| 2851 | GitRepository::open(root).map_err(|error| git_error(format!("cannot open repository: {error}"))) |
| 2852 | } |
| 2853 | |
| 2854 | fn current_attached_git_branch(git: &GitRepository) -> CliResult<String> { |
| 2855 | match observe_head(git).map_err(observation_error)? { |
no test coverage detected