diff options
author | Etienne Samson <samson.etienne@gmail.com> | 2019-10-10 11:32:16 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-06-27 14:33:58 +0200 |
commit | 3c17f22976d62e5fc2743186b4b1b567aadf104a (patch) | |
tree | 949a7147b8c54730808772c0224cad8dd30e4c4c /include | |
parent | 919501a92dbafac6e6e876aa7160c3f46f8afe55 (diff) | |
download | libgit2-3c17f22976d62e5fc2743186b4b1b567aadf104a.tar.gz |
repo: load shallow roots
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/repository.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index 9ddcd3404..5a27cf08e 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -11,6 +11,7 @@ #include "types.h" #include "oid.h" #include "buffer.h" +#include "oidarray.h" /** * @file git2/repository.h @@ -875,6 +876,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 |