Support multi-branch CLI comparisons#49
Conversation
|
Ready to review this PR? Stage has broken it down into 5 individual chapters for you: Chapters generated by Stage for commit 946bddf on May 23, 2026 4:48pm UTC. |
There was a problem hiding this comment.
Code Review
This pull request introduces support for comparing arbitrary git references using positional arguments, range syntax (e.g., main..feature), and a new --compare flag across the prep and show commands. The core logic in packages/cli/src/git.ts has been refactored to resolve merge bases and SHAs for these comparisons, supported by new unit tests and updated documentation. Feedback suggests improving the range parsing to allow omitting one side of a range (e.g., ..feature), defaulting to HEAD to better align with standard git behavior.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 903de81. Configure here.

Summary
Add diffity-style git ref arguments to the stagereview CLI so users can prepare and view chapter runs for branch, tag, and range comparisons.
Changes
Testing
pnpm lint; pnpm typecheck; pnpm test; pnpm build