How do I launch the external diff tool for a diff between two commits from within SourceTree?
The diff tool is already setup in the options, and works for single files, but I would like to perform a diff between two commits.
I assumed I could just select the two commits and the right-click context menu would have an option to perform an external diff, but I do not see any option for it.
The feature isn't available out of the box as of version 126.96.36.199. Which is strange given that every other worthwhile VCS GUI I've ever used had such a feature, especially if they already support per file external diffs.
I was able to workaround around the deficiency in SourceTree by creating a custom action with the following settings.
Menu Caption: External Diff
Script to run: git
Parameters: difftool --dir-diff $SHA
This assumes you have an external diff tool configured properly in git and that can support directory diffs. I'm using Beyond Compare 3, so my difftool config is:
difftool.bc3.cmd='C:/Program Files (x86)/Beyond Compare 3/BCompare.exe' "$LOCAL" "$REMOTE"
The above config follows the suggestions of Timon Wong [http://theo.im/blog/2012/10/27/directory-comparison-for-git-difftool/] and Scooter Software technical support [http://www.scootersoftware.com/vbulletin/showthread.php?t=9449].
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs