diff for libgit2 impl