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

Method description

atomic-repository/src/status.rs:249–261  ·  view source on GitHub ↗

Get a human-readable description of this status.

(&self)

Source from the content-addressed store, hash-verified

247
248 /// Get a human-readable description of this status.
249 pub fn description(&self) -> &'static str {
250 match self {
251 FileStatus::Clean => "unchanged",
252 FileStatus::Modified => "modified",
253 FileStatus::Deleted => "deleted",
254 FileStatus::Untracked => "untracked",
255 FileStatus::Added => "added",
256 FileStatus::PendingUntrack => "untrack pending",
257 FileStatus::Conflicted => "conflicted",
258 FileStatus::TypeChanged => "type changed",
259 FileStatus::PermissionsChanged => "permissions changed",
260 }
261 }
262}
263
264impl std::fmt::Display for FileStatus {

Calls

no outgoing calls