libgit2

git_reference_is_branch

Version:

Check if a reference is a local branch.

Signature

int git_reference_is_branch(git_reference *ref);

Parameters

In
ref

A git reference

Returns

int

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

Versions