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:353–360  ·  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

351/// §6.5) so a non-interactive shadow push that a Validator rule aborts leaves a
352/// durable, greppable trail instead of failing silently.
353pub(crate) fn append_shadow_validate_log(repo_root: &Path, rule: &str, view: &str, detail: &str) {
354 append_shadow_log(
355 repo_root,
356 &format!("shadow-validate:{}", rule),
357 view,
358 detail,
359 );
360}
361
362/// Append one tagged `.atomic/hook-errors.log` line. Best-effort: log I/O errors
363/// are ignored (the operation already surfaces its own outcome).

Callers 2

runMethod · 0.85
stage_and_validate_treeFunction · 0.85

Calls 1

append_shadow_logFunction · 0.85

Tested by

no test coverage detected