Many changes to src/git2r.c