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

Method oid

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

Source from the content-addressed store, hash-verified

74
75impl HeadObservation {
76 pub fn oid(&self) -> Option<Oid> {
77 match self {
78 Self::Attached { oid, .. } | Self::Detached { oid } => Some(*oid),
79 Self::Unborn { .. } | Self::MissingTarget { .. } => None,
80 }
81 }
82
83 pub fn symref(&self) -> Option<&str> {
84 match self {

Callers 5

forensic_driftFunction · 0.45
observe_head_treeFunction · 0.45
checkpoint_forFunction · 0.45
observeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected