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

Method modified

atomic-cli/src/commands/diff/types.rs:140–142  ·  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

138 /// * `insertions` - Number of lines added
139 /// * `deletions` - Number of lines deleted
140 pub fn modified(path: impl Into<String>, insertions: usize, deletions: usize) -> Self {
141 Self::new(path, insertions, deletions, 'M')
142 }
143
144 /// Get the total number of changed lines.
145 pub fn total_changes(&self) -> usize {

Calls 1

cloneMethod · 0.45