diff options
| author | Vicent Martà <vicent@github.com> | 2013-05-24 01:14:52 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-05-24 01:14:52 -0700 |
| commit | 4811c1500bfaaf8c7e61d712371f3ca429ef2016 (patch) | |
| tree | 5c57bcc86f6ddba872c75c2866ef89594f22adc6 /include/git2 | |
| parent | 30caf0cf2942412981b7662e50a2e9242afa2cce (diff) | |
| parent | 6f0b8142e65b43f2224027a7abc67116ab6ad1a7 (diff) | |
| download | libgit2-4811c1500bfaaf8c7e61d712371f3ca429ef2016.tar.gz | |
Merge pull request #1603 from ben/shallow
Shallow-clone detection
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/repository.h | 9 |
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 |
