summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/repository.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h
index bb2b3db83..4fbd913b1 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -657,6 +657,15 @@ GIT_EXTERN(int) git_repository_set_namespace(git_repository *repo, const char *n
*/
GIT_EXTERN(const char *) git_repository_get_namespace(git_repository *repo);
+
+/**
+ * Determine if the repository was a shallow clone
+ *
+ * @param repo The repository
+ * @return 1 if shallow, zero if not
+ */
+GIT_EXTERN(int) git_repository_is_shallow(git_repository *repo);
+
/** @} */
GIT_END_DECL
#endif