libgit2 snippets