summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2013-05-23 15:11:53 -0700
committerBen Straub <bs@github.com>2013-05-23 15:35:50 -0700
commit93d8f77fed9407421ba1c90141d997b2dea7e0e7 (patch)
tree2212d7ad77c4fdc23425d7e8c5526a9c36332b57 /include/git2
parent9c941ccfaf600caef3c87387a6992bfe5a17c742 (diff)
downloadlibgit2-93d8f77fed9407421ba1c90141d997b2dea7e0e7.tar.gz
Improve test failure output
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