From 4a863c06662053a8530a0dcb24e0a2daa33e05cf Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 3 Jan 2013 20:36:26 +0100 Subject: 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. --- include/git2/odb_backend.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/git2/odb_backend.h') 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, -- cgit v1.2.1