Sublime Forum

Is it possible to do a range-diff in sublime merge?

#1

Is is possible to do a range-diff in sublime merge? I cherry-pick and rebase a lot, so sometimes it’s necessary to verify if two patches/ranges are the same. I can drop to the git cli to do this, but it would be awesome if I can just select two ranges (this seems to be possible using ctrl and shift) and use the right-click context menu to do a range-diff.

0 Likes

#2

Any updates or workarounds for this?

0 Likes

#3

FWIW, I added this to my Commit.sublime-menu file:

    {
        "caption": "⇄ rangediff HEAD...$short_commit",
        "command": "chain",
        "args": {"commands": [
            ["git", {"argv": ["range-diff", "HEAD...$commit"]}],
            ["show_git_command_history"]]
        },
    },

Not optimal, but it helps me from time to time

0 Likes