The new branch name will be checked for validity.
See git_tag_create() for rules about valid names.
Note that if the move succeeds, the old reference object will not
+ be valid anymore, and should be freed immediately by the user using
+ git_reference_free().
@param out_ New reference object for the updated name.
@param branch Current underlying reference of the branch.
@param new_branch_name Target name of the branch once the move
is performed; this name is validated for consistency.
@param force Overwrite existing branch.
@return 0 on success, git_error_code.GIT_EINVALIDSPEC or an error code.
Move/rename an existing local branch reference.
The new branch name will be checked for validity. See git_tag_create() for rules about valid names.
Note that if the move succeeds, the old reference object will not + be valid anymore, and should be freed immediately by the user using + git_reference_free().
@param out_ New reference object for the updated name.
@param branch Current underlying reference of the branch.
@param new_branch_name Target name of the branch once the move is performed; this name is validated for consistency.
@param force Overwrite existing branch.
@return 0 on success, git_error_code.GIT_EINVALIDSPEC or an error code.