summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-05-24 01:14:52 -0700
committerVicent Martí <vicent@github.com>2013-05-24 01:14:52 -0700
commit4811c1500bfaaf8c7e61d712371f3ca429ef2016 (patch)
tree5c57bcc86f6ddba872c75c2866ef89594f22adc6 /include/git2
parent30caf0cf2942412981b7662e50a2e9242afa2cce (diff)
parent6f0b8142e65b43f2224027a7abc67116ab6ad1a7 (diff)
downloadlibgit2-4811c1500bfaaf8c7e61d712371f3ca429ef2016.tar.gz
Merge pull request #1603 from ben/shallow
Shallow-clone detection
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