diff options
| author | yuangli <yuangli@mathworks.com> | 2022-07-04 17:08:04 +0100 |
|---|---|---|
| committer | yuangli <yuangli@mathworks.com> | 2022-07-04 17:08:04 +0100 |
| commit | afa79ca05862c24baa0360324ab7b63c0df90689 (patch) | |
| tree | fbaa0ddf5f5176e5fb8d83ed7e0db72209473c87 /include/git2/repository.h | |
| parent | 70a332a51b6364507d19bd1821b22fabbd1f2e08 (diff) | |
| download | libgit2-afa79ca05862c24baa0360324ab7b63c0df90689.tar.gz | |
Merge branch 'pr/tiennou/4747' into transportPR
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 |
