Retrieve diverging commit counts between two refs
GET
/api/v4/projects/{id}/repository/diverging_commits
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”from
required
string
The ref to compare from
Example
mainto
required
string
The ref to compare to
Example
featuremax_count
integer
Maximum number of commits to count. 0 for unlimited
Example
1000Responses
Section titled “Responses”OK
Media typeapplication/json
object
behind
integer
ahead
integer
Example
{ "behind": 3, "ahead": 5}Bad request
Unauthorized
Forbidden
Not found
Too many requests