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

Method context

atomic-cli/src/commands/diff/types.rs:432–439  ·  view source on GitHub ↗

Create a context (unchanged) line.

(content: impl Into<String>, old_num: usize, new_num: usize)

Source from the content-addressed store, hash-verified

430impl HunkLine {
431 /// Create a context (unchanged) line.
432 pub fn context(content: impl Into<String>, old_num: usize, new_num: usize) -> Self {
433 Self {
434 status: LineStatus::Unchanged,
435 content: content.into(),
436 old_line_num: Some(old_num),
437 new_line_num: Some(new_num),
438 }
439 }
440
441 /// Create an added line.
442 pub fn added(content: impl Into<String>, new_num: usize) -> Self {

Callers 5

runtimeFunction · 0.80
start_or_reconnectFunction · 0.80
serveFunction · 0.80
read_frameFunction · 0.80
configure_detachedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected