(git: &GitRepository)
| 1552 | } |
| 1553 | |
| 1554 | fn git_head_paths(git: &GitRepository) -> CliResult<BTreeSet<String>> { |
| 1555 | let tree = git |
| 1556 | .head() |
| 1557 | .and_then(|head| head.peel_to_commit()) |
| 1558 | .and_then(|commit| commit.tree()) |
| 1559 | .map_err(|error| git_error(format!("cannot read current Git HEAD tree: {error}")))?; |
| 1560 | Ok(read_git_tree(git, &tree)?.into_keys().collect()) |
| 1561 | } |
| 1562 | |
| 1563 | fn git_branch_paths(git: &GitRepository, branch: &str) -> CliResult<BTreeSet<String>> { |
| 1564 | let reference_name = format!("refs/heads/{branch}"); |
no test coverage detected