Details
-
Suggestion
-
Resolution: Won't Fix
Description
Stash has an API like so:
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/compare/commits
Can this functionality be added to the Bitbucket REST API? Specifically, I'm interested in listing the metadata about all commits between two hashes.
The Bitbucket REST API supports paginating backwards from {{/commits/
{hash}}} but if you consider the use case where we're starting at this hash and paginating back in time looking for the target hash, a problem arises when we don't know if the target hash exists: we may end up listing the entire repo before we can determine that it's not there.