summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2013-01-03 20:36:26 +0100
committerVicent Marti <tanoku@gmail.com>2013-01-10 15:34:56 +0100
commit4a863c06662053a8530a0dcb24e0a2daa33e05cf (patch)
tree7cf411ca542687c7bda92d17809be88efd28a2e7 /include/git2/odb_backend.h
parenta22ad9fd1f1f938fb9b8ac77939dda8a3b81a00e (diff)
downloadlibgit2-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.h2
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,