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

Function record_last_shim_operation_probe

atomic-cli/src/commands/git/shim.rs:3356–3370  ·  view source on GitHub ↗
(root: &std::path::Path)

Source from the content-addressed store, hash-verified

3354mod tests {
3355 #[cfg(test)]
3356 fn record_last_shim_operation_probe(root: &std::path::Path) -> CliResult<()> {
3357 // The marker writer is best-effort (returns ()). For the regression we
3358 // verify the WRITE against a real repository: the marker must appear.
3359 record_last_shim_operation(root);
3360 let marker = Repository::canonical_dot_dir(root)
3361 .map_err(CliError::from)?
3362 .join("bridge/suppressed-operation.json");
3363 if marker.exists() {
3364 Ok(())
3365 } else {
3366 Err(git_error(
3367 "the suppression attribution marker was not written",
3368 ))
3369 }
3370 }
3371
3372 /// CB-13D ::24 AC-4 regression: a reconciled pass records the JOURNAL
3373 /// OperationId of its just-completed operation (plus the working-copy

Callers

nothing calls this directly

Calls 3

git_errorFunction · 0.70
existsMethod · 0.45

Tested by

no test coverage detected