diff options
author | Galin Simeonov <gts@volconst.com> | 2021-09-08 22:49:43 +0300 |
---|---|---|
committer | Galin Simeonov <gts@volconst.com> | 2021-09-08 22:49:43 +0300 |
commit | 64bf27391629388db4fcde1ae5eb8c184471874f (patch) | |
tree | 20befc23215d421e18ca9e3dd40a89b641dd75bf | |
download | volgit-64bf27391629388db4fcde1ae5eb8c184471874f.tar.gz |
init commit
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | makefile | 8 | ||||
-rw-r--r-- | volgit.c | 21 |
3 files changed, 31 insertions, 0 deletions
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 <stdio.h> +#include <git2.h> + + +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; +} |