libgit2/libgit2 — pull request #1938 by carlosmn (2013-11-02 13:19:48+00:00)
Title: branch: move from foreach to an iterator

Create a git_branch_iterator type which is equivalent to the foreach but
lets us write loops instead of callbacks.

Since the introduction of git_reference_shorthand(), the added value of
passing the name is reduced.