some inlined functions in libgit2 0.18.0