Skip to content

Retrieve a commit sequence

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

Retrieves the commit sequence for a specified commit.

id
required
One of:
string

The ID or URL-encoded path of the project

sha
required
string

A commit SHA

first_parent
boolean
nullable

Only include the first parent of merges

OK

Media type application/json
object
count
integer
Example
{
"count": 1
}

Bad Request

Not found