VOLGIT



LOG | FILES | OVERVIEW


#include <stdio.h>
#include <git2.h>
#include <system_part.h>
#include <git_part.h>

int main(int argc,char **argv)
{

	git_repository *repo;

	git_libgit2_init();

	parse_options(argc,argv);	

	git_repository_open(&repo,state.input_path);
	if(repo==NULL)
		die("Could not open input git repository\n");

	print_branches(repo);

	git_repository_free(repo);
	git_libgit2_shutdown();

	return 0;
}