#include #include #include int main(int argc,char **argv) { const char *repo_path; if(argc<=1) { fprintf(stderr,"You need to specify a source dir for the repo\n"); return 1; } git_repository *repo; git_libgit2_init(); git_repository_open(&repo,argv[1]); print_branches(repo); git_repository_free(repo); git_libgit2_shutdown(); return 0; }