Commit 34065968 by Carlos Martín Nieto

submodule: completely remove reload_all

The function was removed, but its declaration and changelog entry about
its removal were forgotten.

The comment in the test doesn't make any sense as the function doesn't
exist anymore, so get rid of it as well.
parent aa92c318
...@@ -177,6 +177,9 @@ v0.22 + 1 ...@@ -177,6 +177,9 @@ v0.22 + 1
* `git_submodule_save()` has been removed. The submodules are no * `git_submodule_save()` has been removed. The submodules are no
longer configured via the objects. longer configured via the objects.
* `git_submodule_reload_all()` has been removed as we no longer cache
submodules.
### Breaking API changes ### Breaking API changes
* `git_smart_subtransport_cb` now has a `param` parameter. * `git_smart_subtransport_cb` now has a `param` parameter.
......
...@@ -584,17 +584,6 @@ GIT_EXTERN(int) git_submodule_open( ...@@ -584,17 +584,6 @@ GIT_EXTERN(int) git_submodule_open(
GIT_EXTERN(int) git_submodule_reload(git_submodule *submodule, int force); GIT_EXTERN(int) git_submodule_reload(git_submodule *submodule, int force);
/** /**
* Reread all submodule info.
*
* Call this to reload all cached submodule information for the repo.
*
* @param repo The repository to reload submodule data for
* @param force Force full reload even if the data doesn't seem out of date
* @return 0 on success, <0 on error
*/
GIT_EXTERN(int) git_submodule_reload_all(git_repository *repo, int force);
/**
* Get the status for a submodule. * Get the status for a submodule.
* *
* This looks at a submodule and tries to determine the status. It * This looks at a submodule and tries to determine the status. It
......
...@@ -71,8 +71,6 @@ void test_submodule_nosubs__add_and_delete(void) ...@@ -71,8 +71,6 @@ void test_submodule_nosubs__add_and_delete(void)
git_submodule *sm; git_submodule *sm;
git_buf buf = GIT_BUF_INIT; git_buf buf = GIT_BUF_INIT;
/* note lack of calls to git_submodule_reload_all - this *should* work */
cl_git_fail(git_submodule_lookup(NULL, repo, "libgit2")); cl_git_fail(git_submodule_lookup(NULL, repo, "libgit2"));
cl_git_fail(git_submodule_lookup(NULL, repo, "submodules/libgit2")); cl_git_fail(git_submodule_lookup(NULL, repo, "submodules/libgit2"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment