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

Method modified

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

Create statistics for a modified file. # Arguments `path` - The file path `insertions` - Number of lines added `deletions` - Number of lines deleted

(path: impl Into<String>, insertions: usize, deletions: usize)

Source from the content-addressed store, hash-verified

161 /// * `insertions` - Number of lines added
162 /// * `deletions` - Number of lines deleted
163 pub fn modified(path: impl Into<String>, insertions: usize, deletions: usize) -> Self {
164 Self::new(path, insertions, deletions, 'M')
165 }
166
167 /// Get the total number of changed lines.
168 pub fn total_changes(&self) -> usize {

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected