summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-05-24 21:48:07 +0200
committernulltoken <emeric.fermas@gmail.com>2011-05-24 21:50:02 +0200
commitfa9bcd81f51ae33e315adbf8bbfc27eddd82cf57 (patch)
tree52c4721f338f37f397cf0084d653aadabe3e3af1 /include/git2
parent4191d529245084fa92e869aadda72dd740403d3a (diff)
downloadlibgit2-fa9bcd81f51ae33e315adbf8bbfc27eddd82cf57.tar.gz
Add git_repository_is_bare() accessor
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/repository.h8
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