sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

Implement Compare across commits, tags and braches #321

Open turbo opened 5 years ago

turbo commented 5 years ago

Problem description

Implemented a mechanism to compare any of the items mentioned above. I'm doing a lot of (back)porting, and this is an essential feature for me.

Preferred solution

Ideally, copy GitHub's /compare extension verbatim. Here's an example comparing two tags: https://github.com/mackyle/sqlite/compare/version-3.7.7.1...version-3.7.8

In short, show a commit list with only the commits that are children of the history between compared items.

Alternatives

Currently, you have to manually select the first item and then keep it half-scrolled and eyeball the next commits. That's pretty clunky.

srbs commented 5 years ago

Similar to #255

themilkman commented 4 months ago

For me, a command palette entry to compare "Diff currently selected with" → "<List of commits (hash and maybe text in the light text on the right), Tags & branches>" would make live much easier. Actually not sure how to handle a already given multi selection, but I think it could behave the same way as the multi click workflow does currently. Having an additional command to select both - the first & the second reference to compare - instead of the currently selected would be nice, too. Another topic might be when the working tree on the top is selected, but therefore is already another issue in general.