Skip to content

FR: Specify multiple revisions in interdiff from/to #8281

@CGamesPlay

Description

@CGamesPlay

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:

  1. Duplicate a..b & c..d
  2. Squash a..b2 into b2 and c..d2 into d2
  3. Run jj interdiff --from b2 --to d2
  4. Run jj abandon b2 d2 and jj edit to 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions