Check if a Git SHA has been indexed.
(&self, git_sha: &str)
| 3762 | |
| 3763 | /// Check if a Git SHA has been indexed. |
| 3764 | pub fn has_git_sha(&self, git_sha: &str) -> Result<bool, RepositoryError> { |
| 3765 | use atomic_core::pristine::GitShaIndexTxnT; |
| 3766 | |
| 3767 | let txn = self |
| 3768 | .pristine |
| 3769 | .read_txn() |
| 3770 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 3771 | |
| 3772 | txn.has_git_sha(git_sha) |
| 3773 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 3774 | } |
| 3775 | |
| 3776 | /// List indexed Git SHAs without loading historical change objects. |
| 3777 | pub fn indexed_git_shas(&self) -> Result<Vec<String>, RepositoryError> { |
no test coverage detected