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

Method with_content

atomic-core/src/change/credit.rs:387–393  ·  view source on GitHub ↗

Create a line credit with content.

(line_number: u64, credit: Credit, content: impl Into<String>)

Source from the content-addressed store, hash-verified

385
386 /// Create a line credit with content.
387 pub fn with_content(line_number: u64, credit: Credit, content: impl Into<String>) -> Self {
388 Self {
389 line_number,
390 credit,
391 content: Some(content.into()),
392 }
393 }
394
395 /// Format for blame-style output.
396 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected