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

Method add_entry

atomic-repository/src/status.rs:479–483  ·  view source on GitHub ↗

Add a file status entry.

(&mut self, entry: FileStatusEntry)

Source from the content-addressed store, hash-verified

477
478 /// Add a file status entry.
479 pub fn add_entry(&mut self, entry: FileStatusEntry) {
480 let index = self.entries.len();
481 self.path_index.insert(entry.path.clone(), index);
482 self.entries.push(entry);
483 }
484
485 /// Get the status entry for a specific path.
486 pub fn get(&self, path: &Path) -> Option<&FileStatusEntry> {

Calls 4

lenMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45
pushMethod · 0.45