We have been started using sublime merge and wonder whether there is a feature to see the difference between 2 arbitrary commits when listing all commits for a given file.
Sublime Merge, [SOLVED] show diff for arbitrary commits in certain view
You can select two commits in the commit list, and you’ll get a diff between those too commits. This works both in regular navigation, and in search results (i.e., file history)
Will this even be possible in a the view listing all commits for given file? We didn’t manage to figure out how. In the end it is the graphical representation of
git diff 3738282994728…382929393 filename.ext
Ok, I’ve seen that this is possible in file history view, how do I switch between default diff view to “side-by-side”?
Yes, you can use File History to see just a single file (which just does a “file:foo.txt” search for you, FWIW).
Related to that, it’s also common to just want all commits that touch a single function in a file. You can do this by opening the file in Sublime Text, selecting the function, and then choose “Line History” from the context menu.
Inline vs side-by-side diffs are by default controlled by the window size: if you make the window wide enough to fit a side-by-side diff, you’ll get a side-by-side diff. You can control this behavior from the Preferences dialog, and force it to always show a side-by-side diff.
Thanks a lot for the detailed description. It is a joy to have people like you supporting others. Sublime merge rocks.
Unfortunately I have to argue with my employer first. But this feature could be used as a beach head. Greeting from a German in Sweden.