diff options
author | John Wiegley <johnw@fpcomplete.com> | 2013-01-29 07:48:36 -0600 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-21 11:50:56 -0700 |
commit | 7cc3c9202722c53bf46e5a8f8d0d7180423a7632 (patch) | |
tree | e889cf9a45140a1f5e526c586d2817ce817e95df /include/git2 | |
parent | 83cc70d9fec5f81d07f9fc4133c9515527efb9af (diff) | |
download | libgit2-7cc3c9202722c53bf46e5a8f8d0d7180423a7632.tar.gz |
Added git_repository_new function
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/repository.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index ed837b359..f55ab798f 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -137,6 +137,14 @@ GIT_EXTERN(int) git_repository_open_ext( GIT_EXTERN(int) git_repository_open_bare(git_repository **out, const char *bare_path); /** + * Create a new repository with neither backends nor config object + * + * Note that this is only useful if you wish to associate the repository + * with a non-filesystem-backed object database and config store. + */ +GIT_EXTERN(int) git_repository_new(git_repository **out); + +/** * Free a previously allocated repository * * Note that after a repository is free'd, all the objects it has spawned |