branch.c
16.4 KB
-
branch: use `foreach_head` to see if a branch is checked out · 38fc5ab0
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`.
Patrick Steinhardt committed