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:2153–2160  ·  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

2151/// §6.5) so a non-interactive shadow push that a Validator rule aborts leaves a
2152/// durable, greppable trail instead of failing silently.
2153pub(crate) fn append_shadow_validate_log(repo_root: &Path, rule: &str, view: &str, detail: &str) {
2154 append_shadow_log(
2155 repo_root,
2156 &format!("shadow-validate:{}", rule),
2157 view,
2158 detail,
2159 );
2160}
2161
2162/// Append one tagged `.atomic/hook-errors.log` line. Best-effort: log I/O errors
2163/// 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