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
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