core: Optimize commits to raw repositories
Avoid creating a temporary intermediate file in the case where we have the total object length available.
This commit is contained in:
1 parent
67f61976f4
commit
7ce587da30
7 files changed
+208
-75
No files matched your search
@@ -106,6 +106,13 @@ gboolean ostree_repo_stage_object (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_file_object (OstreeRepo *self,
|
||||
const char *expected_checksum,
|
||||
GInputStream *content,
|
||||
guint64 content_length,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_object_trusted (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const char *checksum,
|
||||
@@ -114,6 +121,14 @@ gboolean ostree_repo_stage_object_trusted (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_file_object_trusted (OstreeRepo *self,
|
||||
const char *checksum,
|
||||
gboolean store_if_packed,
|
||||
GInputStream *content,
|
||||
guint64 content_length,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_resolve_rev (OstreeRepo *self,
|
||||
const char *rev,
|
||||
gboolean allow_noent,
|
||||
|
||||
Reference in new issue
Block a user