Sublime Forum

Can I diff between two commits without needing to click them?


Let’s say I have two commits, 5d7206f and 9c095c3 - but I don’t know where they are in the tree.

What’s the easier way to diff them using Sublime Merge? I know I can bring up the command pallet and choose “Navigate to commit” and then paste in 9c095c3, but what the best way of selecting 5d7206f for the other half off the diff?

If there was a “compare with” command that I could paste 5d7206f into then that would be great. But any other way that works be good for me.

I’m open to suggestions :slight_smile:

1 Like


You can use the search function (ctrl+f) with a query similar to commit:abc or commit:def to get both commits, then select them both for a diff.



Of course! using boolean search never even occurred to me.

Thanks, it works great.