summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
Diffstat (limited to 'git.c')
-rw-r--r--git.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.c b/git.c
index 65a5c62..5e86642 100644
--- a/git.c
+++ b/git.c
@@ -55,6 +55,11 @@ void cleanup_git_repos(git_repository **repos) {
free(repos);
}
+void cleanup_git(git_repository **repos) {
+ cleanup_git_repos(repos);
+ git_libgit2_shutdown();
+}
+
git_repository **init_git(config *cfg) {
git_repository **repos = NULL;
git_repository *repo = NULL;