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

Method add_entry

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

Add a file status entry.

(&mut self, entry: FileStatusEntry)

Source from the content-addressed store, hash-verified

549
550 /// Add a file status entry.
551 pub fn add_entry(&mut self, entry: FileStatusEntry) {
552 let index = self.entries.len();
553 self.path_index.insert(entry.path.clone(), index);
554 self.entries.push(entry);
555 }
556
557 /// Add an entry, replacing any existing entry for the same path.
558 ///

Calls 4

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