Skip to main content

Module differ

Module differ 

Source
Expand description

Report-to-report comparison for the diff subcommand.

Reads any utf8-forge JSON report that carries a files[] array and compares per path: added, removed, and changed (action or byte-count drift). Paths are compared as exact strings — both reports must come from the same --root and the same platform’s path spelling; a differing root field triggers a warning, not an error. Input reports are data, not configuration, so unknown JSON fields are ignored (lenient deserialization).

Structs§

ChangedEntry
One common path whose record drifted.
DiffInput
Lenient view of a whole report.
DiffInputFile
Lenient view of one report row (also serialized into the diff output).
DiffReport
The diff output document (a new document type, not the run report).
DiffSummary
Counts for the diff summary.

Functions§

compare
Compare two parsed reports. Duplicate paths within one report resolve to the last occurrence (the tool never produces duplicates; sorted unique by construction). Arrays are sorted by path.