blob: cca9ae64b5bd5f95342017058150ceccf8b71c89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdio.h>
#include <git2.h>
#include <system_part.h>
#include <git_part.h>
int main(int argc,char **argv)
{
git_repository *repo;
git_libgit2_init();
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);
git_repository_free(repo);
git_libgit2_shutdown();
return 0;
}
|