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

Function head_symref

atomic-repository/src/repository/workspace_txn.rs:1731–1738  ·  view source on GitHub ↗
(head: &GitHeadObservation)

Source from the content-addressed store, hash-verified

1729}
1730
1731fn head_symref(head: &GitHeadObservation) -> Option<&str> {
1732 match head {
1733 GitHeadObservation::Attached { symref, .. }
1734 | GitHeadObservation::Unborn { symref }
1735 | GitHeadObservation::MissingTarget { symref } => Some(symref),
1736 GitHeadObservation::Detached { .. } => None,
1737 }
1738}
1739
1740/// Observation for a working copy outside the bridge: its Git metadata
1741/// belongs to the user and ordinary Atomic boundaries do not interpret it.

Callers 1

classify_git_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected