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 {

Callers 8

run_pushMethod · 0.45
print_long_formatMethod · 0.45
print_short_formatMethod · 0.45
reindex_working_copyFunction · 0.45
import_branchMethod · 0.45
phase2_writeMethod · 0.45
runMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by 1