Commits
Get the common ancestor between two commits
Changed onReturns the best common ancestor between two commits, specified in a revspec of 2 commits (e.g. 3a8b42..9ff173).
If more than one best common ancestor exists, only one will be returned. It is unspecified which will be returned.
get/repositories/{workspace}/{repo_slug}/merge-base/{revspec}
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/merge-base/{revspec}
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: repository
- or HTTP basic
- or API key in header Authorization
Response
The merge base of the provided spec.
Changes
- warning
removed the optional property
/////////from the response with the status - warning
removed the optional property
//////from the response with the status - info
added the optional property
/////to the response with the status
- warning