MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / parse_commit

Function parse_commit

atomic-cli/src/commands/git/parallel.rs:8594–8601  ·  view source on GitHub ↗

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>,
)

Source from the content-addressed store, hash-verified

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).
8594fn 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
8603fn parse_commit_with_scope(
8604 git_repo: &GitRepository,

Calls 1

parse_commit_with_scopeFunction · 0.85