Commit 74511aa2041b16b856932b53565c6a1127d0f8be

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

repository: add function to iterate over all HEADs While we already provide functions to get the current repository's HEAD, it is quite involved to iterate over HEADs of both the repository and all linked work trees. This commit implements a function `git_repository_foreach_head`, which accepts a callback which is then called for all HEAD files.