Commits

Get the common ancestor between two commits

Changed on

Returns 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 URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/merge-base/{revspec}
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token 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.

typestring required
hashstring
datestring date-time
messagestring

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