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

Method external_commit

atomic-cli/tests/it/import_budget_100k_bench.rs:367–378  ·  view source on GitHub ↗

The external Git transition both fixtures run (deterministic dates make the commit OIDs identical across the two repositories).

(&self)

Source from the content-addressed store, hash-verified

365 /// The external Git transition both fixtures run (deterministic dates
366 /// make the commit OIDs identical across the two repositories).
367 fn external_commit(&self) {
368 fs::write(
369 self.root().join("dir-0000").join("file-00000.txt"),
370 "EXTERNAL EDIT v2\n",
371 )
372 .expect("external edit");
373 git_ok(self.root(), &["add", "-A"]);
374 git_ok(
375 self.root(),
376 &["commit", "-qm", "external equivalence commit"],
377 );
378 }
379
380 /// The logical state identity (mirrors the CB-13D harness): the
381 /// checkpoint's state-shape fields, the refname/target set with

Calls 3

writeFunction · 0.70
git_okFunction · 0.70
rootMethod · 0.45

Tested by

no test coverage detected