From 64bf27391629388db4fcde1ae5eb8c184471874f Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Wed, 8 Sep 2021 22:49:43 +0300 Subject: init commit --- .gitignore | 2 ++ makefile | 8 ++++++++ volgit.c | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 makefile create mode 100644 volgit.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ab4708 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.o +volgit diff --git a/makefile b/makefile new file mode 100644 index 0000000..93ab295 --- /dev/null +++ b/makefile @@ -0,0 +1,8 @@ +volgit: volgit.o + c99 volgit.o -lgit2 -o volgit + +volgit.o: volgit.c + c99 -c volgit.c -o volgit.o + +clean: + rm -rf volgit.o volgit diff --git a/volgit.c b/volgit.c new file mode 100644 index 0000000..76ae0d7 --- /dev/null +++ b/volgit.c @@ -0,0 +1,21 @@ +#include +#include + + +int main() +{ + git_branch_iterator *it; + git_repository *repo; + + + git_repository_open(&repo,"."); + git_branch_iterator_new(&it,repo,GIT_BRANCH_LOCAL); + + + + + git_repository_free(repo); + git_branch_iterator_free(it); + + return 0; +} -- cgit v1.2.3