VOLGIT



LOG | FILES | OVERVIEW


F diff --git a/.gitignore b/.gitignore new file mode 100644 --- /dev/null +++ b/.gitignore
+ *.o
+ volgit
F diff --git a/makefile b/makefile new file mode 100644 --- /dev/null +++ b/makefile
+ 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
F diff --git a/volgit.c b/volgit.c new file mode 100644 --- /dev/null +++ b/volgit.c
+ #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;
+ }