summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-12-21 10:32:23 -0800
committerVicent Martí <vicent@github.com>2012-12-21 10:32:23 -0800
commit2052e3c0715f0d5f5a222bb8fb316fc0da7e8be9 (patch)
tree4031eeb89678c4f128c39715ba1f0d7a18d65d88 /include/git2
parent4c10d1afebfd1923e842c34c4fa44f67c2bbf9af (diff)
parent4d185dd9b0dde93bf30b250e6c7dd751bc893268 (diff)
downloadlibgit2-2052e3c0715f0d5f5a222bb8fb316fc0da7e8be9.tar.gz
Merge pull request #1163 from barrbrain/check-exists-before-write
odb: check if object exists before writing
Diffstat (limited to 'include/git2')
-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 *,