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

Method new

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

102 /// * `deletions` - Number of lines deleted
103 /// * `status` - Status character (M/A/D/R/C)
104 pub fn new(path: impl Into<String>, insertions: usize, deletions: usize, status: char) -> Self {
105 Self {
106 path: path.into(),
107 insertions,
108 deletions,
109 status,
110 }
111 }
112
113 /// Create statistics for an added file.
114 ///

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected