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

Method glyph

atomic-repository/src/repository/staging.rs:61–71  ·  view source on GitHub ↗

The single-character glyph used by `status --git` two-column output.

(self)

Source from the content-addressed store, hash-verified

59impl StageCode {
60 /// The single-character glyph used by `status --git` two-column output.
61 pub fn glyph(self) -> char {
62 match self {
63 Self::Unmodified => ' ',
64 Self::Modified => 'M',
65 Self::Added => 'A',
66 Self::Deleted => 'D',
67 Self::TypeChanged => 'T',
68 Self::Unmerged => 'U',
69 Self::Untracked => '?',
70 }
71 }
72}
73
74/// One path's relation across the five layers.

Callers 1

stage_code_stringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected