summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@fpcomplete.com>2013-01-29 07:48:36 -0600
committerRussell Belfer <rb@github.com>2013-04-21 11:50:56 -0700
commit7cc3c9202722c53bf46e5a8f8d0d7180423a7632 (patch)
treee889cf9a45140a1f5e526c586d2817ce817e95df /src/repository.c
parent83cc70d9fec5f81d07f9fc4133c9515527efb9af (diff)
downloadlibgit2-7cc3c9202722c53bf46e5a8f8d0d7180423a7632.tar.gz
Added git_repository_new function
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 64ab2f4db..72b5a079a 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -129,6 +129,12 @@ static git_repository *repository_alloc(void)
return repo;
}
+int git_repository_new(git_repository **out)
+{
+ *out = repository_alloc();
+ return 0;
+}
+
static int load_config_data(git_repository *repo)
{
int is_bare;