blob: a92e3885ff040dc3d4b4eb8752b22a492f165077 (
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,state.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;
}
|