libgit2/libgit2 — pull request #2539 by carlosmn (2014-08-28 11:40:40+00:00)
Title: Fix ahead-behind results

The logic is currently reversed. Fix that.

I went and checked manually with git each pair in the tests that I changed.

This is one for backporting too @vmg.