(git: &GitRepository)
| 1596 | } |
| 1597 | |
| 1598 | fn git_head_paths(git: &GitRepository) -> CliResult<BTreeSet<String>> { |
| 1599 | let tree = git |
| 1600 | .head() |
| 1601 | .and_then(|head| head.peel_to_commit()) |
| 1602 | .and_then(|commit| commit.tree()) |
| 1603 | .map_err(|error| git_error(format!("cannot read current Git HEAD tree: {error}")))?; |
| 1604 | Ok(read_git_tree(git, &tree)?.into_keys().collect()) |
| 1605 | } |
| 1606 | |
| 1607 | fn git_branch_paths(git: &GitRepository, branch: &str) -> CliResult<BTreeSet<String>> { |
| 1608 | let reference_name = format!("refs/heads/{branch}"); |
no test coverage detected