Skip to main content

Module sync

Module sync 

Source
Expand description

Reconciliation for gize sync (ADR-009): compare a desired Plan against the filesystem and classify each file as missing, drifted (present but different), or unchanged. Applying is conservative — missing files are created, but a drifted file is never overwritten without --force, so hand edits are safe (roadmap risk: destructive sync). Directories in the plan are implicit and ignored here.

Structs§

Applied
What apply did (or, under dry_run, would do).
Reconciliation
The result of diffing a desired plan against what is on disk. Read-only: computing it writes nothing.

Functions§

apply
Apply a reconciliation: always create missing files; overwrite drifted files only when force. dry_run computes the same report but writes nothing.
reconcile
Compare plan against the tree rooted at root, writing nothing.