Classify a runtime file kind.
(kind: atomic_core::operation::FileKind)
| 39 | |
| 40 | /// Classify a runtime file kind. |
| 41 | pub fn from_file_kind(kind: atomic_core::operation::FileKind) -> Self { |
| 42 | match kind { |
| 43 | atomic_core::operation::FileKind::Regular => Self::Regular, |
| 44 | atomic_core::operation::FileKind::Symlink => Self::Symlink, |
| 45 | atomic_core::operation::FileKind::Gitlink => Self::Gitlink, |
| 46 | atomic_core::operation::FileKind::Directory => Self::Regular, |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /// Encoding magic of a canonical conflict-set object. |
nothing calls this directly
no outgoing calls
no test coverage detected