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

Method indexed_git_shas

atomic-repository/src/repository/insert.rs:3777–3786  ·  view source on GitHub ↗

List indexed Git SHAs without loading historical change objects.

(&self)

Source from the content-addressed store, hash-verified

3775
3776 /// List indexed Git SHAs without loading historical change objects.
3777 pub fn indexed_git_shas(&self) -> Result<Vec<String>, RepositoryError> {
3778 use atomic_core::pristine::GitShaIndexTxnT;
3779
3780 let txn = self
3781 .pristine
3782 .read_txn()
3783 .map_err(|e| RepositoryError::Database(e.to_string()))?;
3784 txn.list_git_shas()
3785 .map_err(|e| RepositoryError::Database(e.to_string()))
3786 }
3787
3788 /// Backfill the GIT_SHA_INDEX from existing imported changes.
3789 ///

Callers

nothing calls this directly

Calls 2

read_txnMethod · 0.80
list_git_shasMethod · 0.45

Tested by

no test coverage detected