libgit2

git_branch_delete

Version:

Delete an existing branch reference.

Note that if the deletion succeeds, the reference object will not be valid anymore, and should be freed immediately by the user using git_reference_free().

Signature

int git_branch_delete(git_reference *branch);

Parameters

In
branch

A valid reference representing a branch

Returns

int

0 on success, or an error code.

Versions