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.

@param branch A reference to a local branch.

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

extern (C) nothrow @nogc
int
git_branch_is_checked_out

Meta