diff options
Diffstat (limited to 'examples/init.c')
-rw-r--r-- | examples/init.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/init.c b/examples/init.c index fe7a67224..23044d10d 100644 --- a/examples/init.c +++ b/examples/init.c @@ -40,14 +40,10 @@ struct opts { static void create_initial_commit(git_repository *repo); static void parse_opts(struct opts *o, int argc, char *argv[]); - -int main(int argc, char *argv[]) +int lg2_init(git_repository *repo, int argc, char *argv[]) { - git_repository *repo = NULL; struct opts o = { 1, 0, 0, 0, GIT_REPOSITORY_INIT_SHARED_UMASK, 0, 0, 0 }; - git_libgit2_init(); - parse_opts(&o, argc, argv); /* Initialize repository. */ @@ -116,7 +112,6 @@ int main(int argc, char *argv[]) } git_repository_free(repo); - git_libgit2_shutdown(); return 0; } |