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§
- Changed
Entry - One common path whose record drifted.
- Diff
Input - Lenient view of a whole report.
- Diff
Input File - Lenient view of one report row (also serialized into the diff output).
- Diff
Report - The
diffoutput document (a new document type, not the run report). - Diff
Summary - 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.