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

Method to_file_kind

atomic-repository/src/repository/conflict_object.rs:32–38  ·  view source on GitHub ↗

The runtime file kind this side materializes as.

(self)

Source from the content-addressed store, hash-verified

30impl ConflictSideKind {
31 /// The runtime file kind this side materializes as.
32 pub fn to_file_kind(self) -> atomic_core::operation::FileKind {
33 match self {
34 Self::Regular => atomic_core::operation::FileKind::Regular,
35 Self::Symlink => atomic_core::operation::FileKind::Symlink,
36 Self::Gitlink => atomic_core::operation::FileKind::Gitlink,
37 }
38 }
39
40 /// Classify a runtime file kind.
41 pub fn from_file_kind(kind: atomic_core::operation::FileKind) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected