Compare two references
compareIdentify differences between any two named tags or commits: version labels, closures and changed paths, with exit codes and a JSON report for release decisions.
Instructions
Use to compare any two tags or commits you name: their version labels, closures and the paths that differ. Publication points play no part. Exit 1 when both declare one label and the code differs. Returns exit 0, 1 or 2 and the JSON report. Exit 2 is not a pass: nothing was decided, and output says why (no label found, a file not read, a tag not compared). Read-only: it runs git reads only, on the local repository, with no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | the first tag or commit (the reference side) | |
| b | Yes | the second tag or commit; paths are listed as changed, only in a, only in b | |
| repo | Yes | path to a local git repository with its tags fetched |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit | Yes | 0 clean, 1 drift, 2 not decided (the reason is in output) | |
| output | Yes | the JSON report (docs/REPORT.md), or the refusal as text | |
| meaning | Yes | the exit code in words |