libgit2

git_branch_delete

Version:

Delete an existing branch reference.

If the branch is successfully deleted, the passed reference object will be freed and invalidated.

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