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

Method encoded

atomic-cli/src/commands/git/observation.rs:960–968  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

958 }
959
960 fn encoded(self) -> &'static [u8] {
961 match self {
962 Self::Tree => b"40000",
963 Self::Regular => b"100644",
964 Self::Executable => b"100755",
965 Self::Symlink => b"120000",
966 Self::Gitlink => b"160000",
967 }
968 }
969
970 fn is_tree(self) -> bool {
971 matches!(self, Self::Tree)

Callers 1

hash_index_treeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected