diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-10-24 13:54:42 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-06-27 14:33:58 +0200 |
commit | 79af067665c37b6dc0b31edb35596c362b0cd9a0 (patch) | |
tree | bd42cc75226476bcb5541bda7a79d7b22b91a2e4 /include | |
parent | a4803c3c5ae2d3e038d56fcfe52215bc2364521a (diff) | |
download | libgit2-79af067665c37b6dc0b31edb35596c362b0cd9a0.tar.gz |
repository: do not expose grafting mechanism
Currently, we expose the function `git_repository_shallow_roots` to get
all grafted roots of the repository. This already paints us into a
corner, though, as we certainly need to experiment with some
functionality of the grafting mechanism before we can happily expose
some of its functionality. Most importantly, we need to get right when
to refresh grafts and when not.
Thus, this commit removes the public function with no public
replacement. We should first try and see what usecases people come up
with to e.g. expose the `git_grafts` mechanism directly in the future
or do something different altogether. Instead, we provide an internal
interface to get weak pointers to the grafting structs part of the
repository itself.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/repository.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index 59e938710..aa81e3843 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -876,18 +876,6 @@ 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 - * - * The resulting OID array needs to be free'd by calling - * `git_oidarray_free`. - * - * @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 |