Parse a single git commit (called in parallel from rayon threads). This is a free function rather than a method because each rayon thread opens its own git repository instance (git2::Repository is not Sync).
(
git_repo: &GitRepository,
oid: Oid,
_index: usize,
oid_to_index: &std::collections::HashMap<Oid, usize>,
)
| 8592 | /// This is a free function rather than a method because each rayon thread |
| 8593 | /// opens its own git repository instance (git2::Repository is not Sync). |
| 8594 | fn parse_commit( |
| 8595 | git_repo: &GitRepository, |
| 8596 | oid: Oid, |
| 8597 | _index: usize, |
| 8598 | oid_to_index: &std::collections::HashMap<Oid, usize>, |
| 8599 | ) -> CliResult<ParsedCommit> { |
| 8600 | parse_commit_with_scope(git_repo, oid, _index, oid_to_index, true) |
| 8601 | } |
| 8602 | |
| 8603 | fn parse_commit_with_scope( |
| 8604 | git_repo: &GitRepository, |