started explore the libgit2 api, it is not that easy!