summaryrefslogtreecommitdiffstats
path: root/volgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'volgit.c')
-rw-r--r--volgit.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/volgit.c b/volgit.c
index dc391e7..cca9ae6 100644
--- a/volgit.c
+++ b/volgit.c
@@ -1,21 +1,20 @@
#include <stdio.h>
#include <git2.h>
+#include <system_part.h>
#include <git_part.h>
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]);
+
+ parse_options(argc,argv);
+
+ git_repository_open(&repo,options.input_path);
+ if(repo==NULL)
+ die("Could not open input git repository\n");
print_branches(repo);