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

Method added

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

Create statistics for an added file. # Arguments `path` - The file path `lines` - Number of lines in the new file

(path: impl Into<String>, lines: usize)

Source from the content-addressed store, hash-verified

140 /// * `path` - The file path
141 /// * `lines` - Number of lines in the new file
142 pub fn added(path: impl Into<String>, lines: usize) -> Self {
143 Self::new(path, lines, 0, 'A')
144 }
145
146 /// Create statistics for a deleted file.
147 ///

Callers

nothing calls this directly

Calls 2

addedFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected