repositories
GET /api/v4/projects/{id}/repository/diverging_commits
Retrieve diverging commit counts between two refs
Request
- Base URLhttps://gitlab.com
- Authnone 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
Example response
{
"behind": 3,
"ahead": 5
}Changes
No recorded changes to this operation across all 5 revisions of this API.