diff options
Diffstat (limited to 'volgit.c')
-rw-r--r-- | volgit.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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); |