diff options
Diffstat (limited to 'include/git2/repository.h')
-rw-r--r-- | include/git2/repository.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index ec8adfb29..bbf3ae4cd 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -921,6 +921,17 @@ GIT_EXTERN(const char *) git_repository_get_namespace(git_repository *repo); GIT_EXTERN(int) git_repository_is_shallow(git_repository *repo); /** + * Determine the shallow roots of the repository + * + * This oidarray is owned by the library. Do not free it. + * + * @param out An array of shallow oids. + * @param repo The repository + * @return 0 on success, an error otherwise. + */ +GIT_EXTERN(int) git_repository_shallow_roots(git_oidarray *out, git_repository *repo); + +/** * Retrieve the configured identity to use for reflogs * * The memory is owned by the repository and must not be freed by the |