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

Function record_all

atomic-repository/src/repository/triage.rs:264–278  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

262 use tempfile::TempDir;
263
264 fn record_all(repo: &Repository, message: &str) -> Hash {
265 let header = ChangeHeader::new(message);
266 // `enrich_kg(false)` reproduces the opencode workflow: changes are
267 // recorded WITHOUT KG enrichment, so no `MODIFIES` edge is ever created.
268 // Coverage must still resolve from the change's own `file_ops`.
269 let options = RecordOptions::new()
270 .with_all(true)
271 .save_to_store(true)
272 .apply_after_record(true)
273 .enrich_kg(false);
274 *repo
275 .record(repo.require_working_copy_id().unwrap(), header, options)
276 .unwrap()
277 .hash()
278 }
279
280 /// The key regression: coverage resolves from the change's own `file_ops`
281 /// even when the KG has NO `MODIFIES` edge for the change (i.e. the

Calls 8

enrich_kgMethod · 0.80
apply_after_recordMethod · 0.80
save_to_storeMethod · 0.80
with_allMethod · 0.45
hashMethod · 0.45
unwrapMethod · 0.45
recordMethod · 0.45