diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-08-30 17:36:00 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-09-04 07:44:53 +0200 |
commit | b1a6c316a6070fac4ab1ec5792979838f7145c39 (patch) | |
tree | ea5c22691963b8595622e40142ac2369d816a5f5 /tests-clar/diff/submodules.c | |
parent | 9b4ed214f484f22f127d7398467f45affcc014af (diff) | |
download | libgit2-b1a6c316a6070fac4ab1ec5792979838f7145c39.tar.gz |
odb: Move the auto refresh logic to the pack backend
Previously, `git_object_read()`, `git_object_read_prefix()` and
`git_object_exists()` were implementing an auto refresh logic. When the
expected object couldn't be found in any backend, a call to
`git_odb_refresh()` was triggered and the lookup was once again performed
against all backends.
This commit removes this auto-refresh logic from the odb layer and pushes
it down into the pack-backend (as it's the only one currently exposing
a `refresh()` endpoint).
Diffstat (limited to 'tests-clar/diff/submodules.c')
0 files changed, 0 insertions, 0 deletions