commits

Retrieve a commit sequence

Retrieves the commit sequence for a specified commit.

get/api/v4/projects/{id}/repository/commits/{sha}/sequence

Request

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

Path parameters

idstring required

The ID or URL-encoded path of the project

shastring required

A commit SHA

Query parameters

first_parentboolean

Only include the first parent of merges

Response

Retrieve a commit sequence

countinteger required

Example response

{
  "count": 1
}

Changes

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