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.
1 if branch is checked out, 0 if it isn't, an error code otherwise.