#4935 Add API endpoint to set the default git branch and expose it in an existing endpoint
Merged by pingou. Opened by pingou.
expose_default_branch  into  master

Download 4935.patch

This commit adds a "default" field to api/0///git/branches
which returns the name of the default branch and potentially its HEAD
commit hash.

It also adds a new API endpoint allowing to change this default branch
to any other existing branch.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

:thumbsup:

rebased onto 5a53da04fdefb388ebc73c1c408c6737c884c58b

rebased onto e7286c64604b038d4ea690ecbeeea1e6f5844e49

Thanks for the review! :)

Pull-Request has been merged by pingou

Metadata