summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorDavid Michael Barr <b@rr-dav.id.au>2012-12-19 14:30:06 +1100
committerDavid Michael Barr <b@rr-dav.id.au>2012-12-21 13:05:20 +1100
commit4d185dd9b0dde93bf30b250e6c7dd751bc893268 (patch)
tree5400c2cd3b547a84ccefb4b1e1779b81b0091d3b /include/git2/odb_backend.h
parente62171e2fc1b101512a7e86f6d990a38b78ed12b (diff)
downloadlibgit2-4d185dd9b0dde93bf30b250e6c7dd751bc893268.tar.gz
odb: check if object exists before writing
Update the procondition of git_odb_backend::write. It may now be assumed that the object has already been hashed.
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 19a154022..7b5a51ed9 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -63,6 +63,10 @@ struct git_odb_backend {
struct git_odb_backend *,
const git_oid *);
+ /* The writer may assume that the object
+ * has already been hashed and is passed
+ * in the first parameter.
+ */
int (* write)(
git_oid *,
struct git_odb_backend *,