Skip to content

Add branch existence check to the APIv4 branches via HEAD request

What does this MR do?

This MR adds a processing of the HEAD requests to the branches APIv4.

HEAD /projects/:id/repository/branches/:branch

By this requests, only check if a branch exists without loading a branch data from a repository.

Why was this MR needed?

Improve performance of API endpoints in case if a user wants just to check if a branch exists or not without loading anything else.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/37159

Edited by username-removed-86853

Merge request reports