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

Method new

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

Create new file diff statistics. # Arguments `path` - The file path `insertions` - Number of lines added `deletions` - Number of lines deleted `status` - Status character (M/A/D/R/C)

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

Source from the content-addressed store, hash-verified

125 /// * `deletions` - Number of lines deleted
126 /// * `status` - Status character (M/A/D/R/C)
127 pub fn new(path: impl Into<String>, insertions: usize, deletions: usize, status: char) -> Self {
128 Self {
129 path: path.into(),
130 insertions,
131 deletions,
132 status,
133 }
134 }
135
136 /// Create statistics for an added file.
137 ///

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected