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

Method status_char

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

Get the status character for this change type.

(&self)

Source from the content-addressed store, hash-verified

696impl FileChangeStatus {
697 /// Get the status character for this change type.
698 pub fn status_char(&self) -> char {
699 match self {
700 FileChangeStatus::Added => 'A',
701 FileChangeStatus::Deleted => 'D',
702 FileChangeStatus::Modified => 'M',
703 FileChangeStatus::Renamed => 'R',
704 FileChangeStatus::Copied => 'C',
705 FileChangeStatus::TypeChanged => 'T',
706 FileChangeStatus::Untracked => 'U',
707 }
708 }
709
710 /// Get a human-readable description of this status.
711 pub fn description(&self) -> &'static str {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected