hash positional is a shorthand for --after: poly diff sandbox compares the previous version against the sandbox deployment (pre-release and live are also accepted, as is a specific version hash). Passing only --before compares that version against the current local project; passing only --after compares it against its immediately preceding version; passing both compares the two named versions or branches directly.
hash vs. --before/--afterThe hash positional and --before/--after are mutually exclusive β passing both errors out.--json output shape:
{"success": true, "message": "No changes detected"}.
See also poly status for a summary of what changed, poly review to generate a GitHub Gist of the changes and poly revert to discard changes.
