from @unified-product-graph/cli · Read
upg diff
Compare the current .upg against a git ref. For PR reviews.
Usage
upg diff [options]Options
--file <path>- Path to .upg file
--since <ref>- Git ref to compare against. Defaults to HEAD~1
--summary- One line per change
--stat- Counts only, like git diff --stat
--json- Machine-readable JSON output
Examples
Show what changed since the previous commit
upg diffOutput
2 added, 1 updated, 0 deleted, 2 edges added + feature "Guest checkout" (parent: Checkout Redesign) + persona "Returning shopper" ~ opportunity "Reduce cart abandonment" · status updated
One-line-per-change diff against main, for a PR
upg diff --since main --summaryJust the change counts
upg diff --stat