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

Method prefix

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

Get the prefix character for this line.

(&self)

Source from the content-addressed store, hash-verified

513
514 /// Get the prefix character for this line.
515 pub fn prefix(&self) -> char {
516 match self.status {
517 LineStatus::Unchanged => ' ',
518 LineStatus::Added => '+',
519 LineStatus::Removed => '-',
520 }
521 }
522}
523
524impl fmt::Display for HunkLine {

Callers 6

build_change_diffFunction · 0.45
write_atomic_symlinkFunction · 0.45
write_atomic_gitlinkFunction · 0.45
replace_directoryFunction · 0.45
replace_symlinkFunction · 0.45
newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected