git_branch_delete

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().

extern (C) nothrow @nogc
int
git_branch_delete

Parameters

branch libgit2_d.types.git_reference*

A valid reference representing a branch

Return Value

Type: int

0 on success, or an error code.

Meta