Skip to content

openregs diff

What changed between two built releases of one regime.

Compare two releases of one regime and report every unit and atom that was added, changed, removed or deprecated, each classified substantive or editorial. A change is editorial only when the amendment parser marked the operation editorial — the amending act’s own recital, recorded in the consolidated text and carried into the release — or the texts are equal under spec/whitespace-policy.md; everything else is substantive. Both releases are read from their own corpus.sqlite, so the answer is what a consumer holding them would see, and diffing a tag against its predecessor reproduces the .diff.json that release shipped, byte for byte.

openregs diff [-h] [--json] [--root <path>] <regime>@<tag>..<regime>@<tag>
Argument
<regime>@<tag>..<regime>@<tag>the two releases to compare, oldest first (required)
Option
--jsonwrite the diff manifest to stdout as JSON — the machine-readable form
--root <path>repository root

Rendered from openregs/openregs@cbe9615:tooling/openregs/cli/main.py