diff options
| author | Vicent Martà <vicent@github.com> | 2013-04-17 12:19:44 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-04-17 12:19:44 -0700 |
| commit | f9fe1b6ea3578e6e1fc1f3b81ce396bbe84833c0 (patch) | |
| tree | 332154af1060bb2d57e8b7d1c42761ae1fe4d2a5 /include/git2 | |
| parent | 1f327768c7124494ac9352e1ea5088b3678f4818 (diff) | |
| parent | a442ed687d4c01a68de9aa7b0e50902f17a1ea84 (diff) | |
| download | libgit2-f9fe1b6ea3578e6e1fc1f3b81ce396bbe84833c0.tar.gz | |
Merge pull request #1476 from libgit2/vmg/bare-open
Add `git_repository_open_bare`
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/repository.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index e75c8b136..e3320975c 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -124,6 +124,21 @@ GIT_EXTERN(int) git_repository_open_ext( const char *ceiling_dirs); /** + * Open a bare repository on the serverside. + * + * This is a fast open for bare repositories that will come in handy + * if you're e.g. hosting git repositories and need to access them + * efficiently + * + * @param out Pointer to the repo which will be opened. + * @param bare_path Direct path to the bare repository + * @return 0 on success, or an error code + */ +GIT_EXTERN(int) git_repository_open_bare( + git_repository **out, + const char *bare_path); + +/** * Free a previously allocated repository * * Note that after a repository is free'd, all the objects it has spawned |
