git_branch_is_checked_out

Determine if any HEAD points to the current branch

This will iterate over all known linked repositories (usually in the form of worktrees) and report whether any HEAD is pointing at the current branch.

extern (C) nothrow @nogc
int
git_branch_is_checked_out

Parameters

branch const(libgit2_d.types.git_reference)*

A reference to a local branch.

Return Value

Type: int

1 if branch is checked out, 0 if it isn't, an error code otherwise.

Meta