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

Method git_commit_closure

atomic-repository/src/repository/synthesis.rs:1381–1389  ·  view source on GitHub ↗

The persisted interpretation closure of one Git commit (CB-9B R1). `None` means the commit was imported before closure persistence (or was never imported here); callers fall back to reconstruction.

(&self, sha: &str)

Source from the content-addressed store, hash-verified

1379 /// `None` means the commit was imported before closure persistence (or
1380 /// was never imported here); callers fall back to reconstruction.
1381 pub fn git_commit_closure(&self, sha: &str) -> Result<Option<Vec<Hash>>, RepositoryError> {
1382 use atomic_core::pristine::GitCommitClosureTxnT;
1383 let txn = self
1384 .pristine
1385 .read_txn()
1386 .map_err(|e| RepositoryError::Database(e.to_string()))?;
1387 txn.get_git_commit_closure(sha)
1388 .map_err(|e| RepositoryError::Database(e.to_string()))
1389 }
1390
1391 /// Persist the complete interpreted closure of a Git commit that was
1392 /// handled outside the synthesis path (squash-insert originals, exact

Callers 4

interpreted_closureMethod · 0.80
phase2_writeMethod · 0.80
resurrect_commitMethod · 0.80

Calls 2

read_txnMethod · 0.80

Tested by

no test coverage detected