git_branch_is_head

Determine if HEAD points to the given branch

extern (C) nothrow @nogc
int
git_branch_is_head

Parameters

branch const(libgit2_d.types.git_reference)*

A reference to a local branch.

Return Value

Type: int

1 if HEAD points at the branch, 0 if it isn't, or a negative value as an error code.

Meta