v2

latestOpenAPI 3.0.02026-08-013312111.4 MB
Commits

Get the common ancestor between two commits

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}

Response

The merge base of the provided spec.

typestring required
hashstring
datestring date-time
messagestring