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

Method with_unbound_commits

atomic-core/src/change/session.rs:126–135  ·  view source on GitHub ↗

Attach observed-but-unbound commit identifiers to these refusal details. Recording an unbound commit claims nothing about authorship: it is the durable observation that the commit happened and no authenticated capture covers it (RFC §10.3.2, §10.5).

(mut self, commits: Vec<String>)

Source from the content-addressed store, hash-verified

124 /// durable observation that the commit happened and no authenticated
125 /// capture covers it (RFC §10.3.2, §10.5).
126 pub fn with_unbound_commits(mut self, commits: Vec<String>) -> Self {
127 let mut commits: Vec<String> = commits
128 .into_iter()
129 .filter(|commit| !commit.is_empty())
130 .collect();
131 commits.sort();
132 commits.dedup();
133 self.unbound_commits = commits;
134 self
135 }
136}
137
138impl std::fmt::Display for IncompleteSession {

Calls 4

sortMethod · 0.80
collectMethod · 0.45
into_iterMethod · 0.45
is_emptyMethod · 0.45