I'm using the following call to the BitBucket 1.0 API to get all the commits on a branch. This call returns all the commits from the specific branch, but also all the commits from the beginning of time. I'm looking for a way to only get the commits that were committed to the specified branch. Is this even possible?
/rest/api/1.0/projects/{ProjectKey}/repos/{RepoSlug}/commits?until={branchId}
I'm looking for a way to only get the commits since the branch split from the 'tree', to the tip of the branch. It doesn't appear that there's any data in the response that I can use to determine which commit was the first on the branch, or last on the 'tree'