Commit 38fc5ab0a235bdb2c35d0ddb3193840c088662a3

Patrick Steinhardt 2017-04-04T18:44:43

branch: use `foreach_head` to see if a branch is checked out Previously, we have extracted the logic to find and iterate over all HEADs of a repository. Use this function in `git_branch_is_checked_out`.