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

Method git_parents

atomic-core/src/change/classification.rs:115–122  ·  view source on GitHub ↗

Ordered Git parents, if this is a Git origin.

(&self)

Source from the content-addressed store, hash-verified

113
114 /// Ordered Git parents, if this is a Git origin.
115 pub fn git_parents(&self) -> Option<&[GitObjectId]> {
116 match self {
117 Self::Native => None,
118 Self::GitSynthesized { parents, .. } | Self::GitResolution { parents, .. } => {
119 Some(parents)
120 }
121 }
122 }
123
124 /// Validate origin-local invariants without changing parent order.
125 pub fn validate(&self) -> Result<(), ChangeValidationError> {

Callers 1

validate_v2Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected