I can see how to diff a specific commit using a url of the format
https://api.bitbucket.org/2.0/repositories/{username}/{repo_slug}/diff/<commit1>..<commit2>
and between two different branches this appears to work. However, when comparing two commits from the same branch, it only appears to diff the changes made by commit2.
Ideally I want the equivalent of running
$git diff <commit1> <commit2>
from the command line.
Any pointers would be most welcome.