The diff API is not in the parameter order one would expect from other libgit2 APIs. This fixes that.