diff options
author | Vicent Marti <tanoku@gmail.com> | 2013-01-03 20:36:26 +0100 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-01-10 15:34:56 +0100 |
commit | 4a863c06662053a8530a0dcb24e0a2daa33e05cf (patch) | |
tree | 7cf411ca542687c7bda92d17809be88efd28a2e7 /include/git2/odb_backend.h | |
parent | a22ad9fd1f1f938fb9b8ac77939dda8a3b81a00e (diff) | |
download | libgit2-4a863c06662053a8530a0dcb24e0a2daa33e05cf.tar.gz |
Sane refresh logic
All the ODB backends have a specific refresh interface. When reading an
object, first we attempt every single backend: if the read fails, then
we refresh all the backends and retry the read one more time to see if
the object has appeared.
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r-- | include/git2/odb_backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index 029c61b9f..dbc3981f6 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -89,6 +89,8 @@ struct git_odb_backend { struct git_odb_backend *, const git_oid *); + int (* refresh)(struct git_odb_backend *); + int (* foreach)( struct git_odb_backend *, git_odb_foreach_cb cb, |