Repository

Get a ref object

Retrieve the details of a single refs object in the repository backing a project. This endpoint functions similarly to git show-ref <pattern>, although the pattern must be a full ref id, rather than a matching pattern.

NOTE: The {repositoryRefId} must be properly escaped. That is, the ref refs/heads/master is accessible via /projects/{projectId}/git/refs/heads%2Fmaster.

get/projects/{projectId}/git/refs/{repositoryRefId}

Request

Path parameters

projectIdstring required
repositoryRefIdstring required

Response

idstring required

The identifier of Ref

refstring required

The name of the reference

shastring required

The commit sha of the ref

Changes

No recorded changes to this operation across all 1 revision of this API.