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

Method add_line

atomic-core/src/output/crdt.rs:216–218  ·  view source on GitHub ↗

Adds a line to this file.

(&mut self, line: Line)

Source from the content-addressed store, hash-verified

214
215 /// Adds a line to this file.
216 pub fn add_line(&mut self, line: Line) {
217 self.lines.push(line);
218 }
219
220 /// Returns the file content by concatenating all alive lines.
221 pub fn content(&self) -> String {

Callers 4

get_file_with_optionsFunction · 0.45
test_builder_statisticsFunction · 0.45
test_multi_file_workflowFunction · 0.45

Calls 1

pushMethod · 0.45

Tested by 3

test_builder_statisticsFunction · 0.36
test_multi_file_workflowFunction · 0.36