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

Function append_shadow_validate_log

atomic-cli/src/commands/git/shadow.rs:2341–2348  ·  view source on GitHub ↗

Append a `shadow-validate: ` entry to `.atomic/hook-errors.log` (SPEC §6.5) so a non-interactive shadow push that a Validator rule aborts leaves a durable, greppable trail instead of failing silently.

(repo_root: &Path, rule: &str, view: &str, detail: &str)

Source from the content-addressed store, hash-verified

2339/// §6.5) so a non-interactive shadow push that a Validator rule aborts leaves a
2340/// durable, greppable trail instead of failing silently.
2341pub(crate) fn append_shadow_validate_log(repo_root: &Path, rule: &str, view: &str, detail: &str) {
2342 append_shadow_log(
2343 repo_root,
2344 &format!("shadow-validate:{}", rule),
2345 view,
2346 detail,
2347 );
2348}
2349
2350/// Append one tagged `.atomic/hook-errors.log` line. Best-effort: log I/O errors
2351/// are ignored (the operation already surfaces its own outcome).

Callers 3

runMethod · 0.85
stage_and_validate_treeFunction · 0.85
refuse_conflict_markersFunction · 0.85

Calls 1

append_shadow_logFunction · 0.85

Tested by

no test coverage detected