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

Method has_git_commit_closure

atomic-core/src/pristine/txn/read.rs:3021–3028  ·  view source on GitHub ↗
(&self, sha: &str)

Source from the content-addressed store, hash-verified

3019 }
3020
3021 fn has_git_commit_closure(&self, sha: &str) -> PristineResult<bool> {
3022 let table = match self.txn.open_table(GIT_COMMIT_CLOSURES) {
3023 Ok(table) => table,
3024 Err(redb::TableError::TableDoesNotExist(_)) => return Ok(false),
3025 Err(error) => return Err(PristineError::from(error)),
3026 };
3027 Ok(table.get(sha)?.is_some())
3028 }
3029}
3030
3031impl BridgeEventCaptureTxnT for ReadTxn {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected