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

Method prefix

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

Get the prefix character for this line.

(&self)

Source from the content-addressed store, hash-verified

490
491 /// Get the prefix character for this line.
492 pub fn prefix(&self) -> char {
493 match self.status {
494 LineStatus::Unchanged => ' ',
495 LineStatus::Added => '+',
496 LineStatus::Removed => '-',
497 }
498 }
499}
500
501impl fmt::Display for HunkLine {

Callers 1

build_change_diffFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected