-
Notifications
You must be signed in to change notification settings - Fork 839
Description
Is your feature request related to a problem? Please describe.
From #8265. I've got a PR from a non-JJ git user in revisions a..b. The author rebases their commit and modifies the changes, giving a new range c..d. If a..b was just b and c..d was just d, then I could use jj interdiff --from b --to d to see what changed, however because they are ranges, I can no longer use interdiff.
Describe the solution you'd like
It would be ideal if interdiff was able to accept entire revsets for both from/to arguments. That would transparently just squash both revsets into a single revision, and then proceed as normal.
Describe alternatives you've considered
The workaround is to do the first step manually:
- Duplicate
a..b & c..d - Squash
a..b2intob2andc..d2intod2 - Run
jj interdiff --from b2 --to d2 - Run
jj abandon b2 d2andjj editto go back to where you were when you started.
This is a very manual process that needlessly changes the working copy revision several times and can't easily be scripted.
Additional context
Add any other context or screenshots about the feature request here.