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

Method git_resolution

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

Construct and validate a Git merge-resolution origin.

(
        merge_commit: GitObjectId,
        parents: Vec<GitObjectId>,
    )

Source from the content-addressed store, hash-verified

95
96 /// Construct and validate a Git merge-resolution origin.
97 pub fn git_resolution(
98 merge_commit: GitObjectId,
99 parents: Vec<GitObjectId>,
100 ) -> Result<Self, ChangeValidationError> {
101 let origin = Self::GitResolution {
102 merge_commit,
103 parents,
104 };
105 origin.validate()?;
106 Ok(origin)
107 }
108
109 /// Returns whether this origin was authored natively by Atomic.
110 pub fn is_native(&self) -> bool {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.45

Tested by

no test coverage detected