summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-03-23 18:44:53 +0200
committerVicent Marti <tanoku@gmail.com>2011-03-23 18:44:53 +0200
commitf6f72d7ef8091bf1fcf19f284e1db62a43f93381 (patch)
tree24b7f1fa9bc18ab2bce72e337c3b7f6ca3b51e51 /include/git2/odb_backend.h
parent08db1efd3d64bda358071612ff3662f4bf1aea61 (diff)
downloadlibgit2-f6f72d7ef8091bf1fcf19f284e1db62a43f93381.tar.gz
Improve the ODB writing backend
Temporary files when doing streaming writes are now stored inside the Objects folder, to prevent issues when moving files between disks/partitions. Add support for block writes to the ODB again (for those backends that cannot implement streaming).
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 3875ec7f6..7eadef33e 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -55,6 +55,13 @@ struct git_odb_backend {
struct git_odb_backend *,
const git_oid *);
+ int (* write)(
+ git_oid *,
+ struct git_odb_backend *,
+ const void *,
+ size_t,
+ git_otype);
+
int (* writestream)(
struct git_odb_stream **,
struct git_odb_backend *,