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

Method list_tracked_files

atomic-repository/src/repository/tracking.rs:508–515  ·  view source on GitHub ↗

List all tracked files in the repository. # Example ```rust,ignore for file in repo.list_tracked_files()? { println!("{}: inode {}", file.path.display(), file.inode.get()); } ```

(&self)

Source from the content-addressed store, hash-verified

506 /// }
507 /// ```
508 pub fn list_tracked_files(&self) -> Result<Vec<TrackedFile>, RepositoryError> {
509 let txn = self
510 .pristine
511 .read_txn()
512 .map_err(|e| RepositoryError::Database(e.to_string()))?;
513
514 list_tracked(&txn).map_err(|e| RepositoryError::Database(e.to_string()))
515 }
516
517 /// Count the number of tracked files.
518 pub fn tracked_file_count(&self) -> Result<usize, RepositoryError> {

Callers 11

reindex_working_copyFunction · 0.80
import_branchMethod · 0.80
populate_file_indexMethod · 0.80
tracked_file_countMethod · 0.80
reindex_working_copyMethod · 0.80
kg_enrich_modulesMethod · 0.80
kg_enrich_filesMethod · 0.80
kg_enrich_includesMethod · 0.80
kg_enrich_callsMethod · 0.80
kg_enrich_entitiesMethod · 0.80

Calls 2

list_trackedFunction · 0.85
read_txnMethod · 0.80

Tested by 1