libgit2/pygit2 — pull request #415 by carlosmn (2014-08-28 11:53:32+00:00)
Title: Add Repository.ahead_behind()

This lets us ask how many diverging commits each side of two histories have.

Unfortunately the libgit2 function is currently buggy, so we might want to avoid merging until we can create some tests which are actually accurate.