inline functions from git2/commit.h