repositories

GET /api/v4/projects/{id}/repository/diverging_commits

Retrieve diverging commit counts between two refs

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Query parameters

fromstring required

The ref to compare from

tostring required

The ref to compare to

max_countinteger

Maximum number of commits to count. 0 for unlimited

Response

Retrieve diverging commit counts between two refs

behindinteger required
aheadinteger required

Example response

{
  "behind": 3,
  "ahead": 5
}

Changes

No recorded changes to this operation across all 5 revisions of this API.