diff options
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 0d67ff8cc..493e82ad5 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -220,6 +220,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 |
