git_reference_is_branch

Check if a reference is a local branch.

extern (C) nothrow @nogc
int
git_reference_is_branch

Parameters

ref_ const(libgit2_d.types.git_reference)*

A git reference

Return Value

Type: int

1 when the reference lives in the refs/heads namespace; 0 otherwise.

Meta