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

Method add_file

atomic-repository/src/diff_engine.rs:222–226  ·  view source on GitHub ↗

Add statistics for a file. # Arguments `file_stats` - Statistics for the file to add

(&mut self, file_stats: FileDiffStats)

Source from the content-addressed store, hash-verified

220 ///
221 /// * `file_stats` - Statistics for the file to add
222 pub fn add_file(&mut self, file_stats: FileDiffStats) {
223 self.total_insertions += file_stats.insertions;
224 self.total_deletions += file_stats.deletions;
225 self.files.push(file_stats);
226 }
227
228 /// Get the number of files with changes.
229 pub fn file_count(&self) -> usize {

Calls 1

pushMethod · 0.45

Tested by 2

memory_addFunction · 0.36
memory_modifyFunction · 0.36