diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-05-24 21:48:07 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-05-24 21:50:02 +0200 |
| commit | fa9bcd81f51ae33e315adbf8bbfc27eddd82cf57 (patch) | |
| tree | 52c4721f338f37f397cf0084d653aadabe3e3af1 /include/git2 | |
| parent | 4191d529245084fa92e869aadda72dd740403d3a (diff) | |
| download | libgit2-fa9bcd81f51ae33e315adbf8bbfc27eddd82cf57.tar.gz | |
Add git_repository_is_bare() accessor
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 c47fcfc9a..23f992f8c 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -212,6 +212,14 @@ GIT_EXTERN(const char *) git_repository_path(git_repository *repo); */ GIT_EXTERN(const char *) git_repository_workdir(git_repository *repo); +/** + * Check if a repository is bare + * + * @param repo Repo to test + * @return 1 if the repository is empty, 0 otherwise. + */ +GIT_EXTERN(int) git_repository_is_bare(git_repository *repo); + /** @} */ GIT_END_DECL #endif |
