repo/commit: Dedup content writing API implementation
Similar to metadata, for `write_content_trusted()` we can just call `_write_content()` with a `NULL` output checksum. Closes: #881 Approved by: jlebon
This commit is contained in:
1 parent
22b1234f52
commit
d2a92df155
1 file changed
+2
-3
@@ -1748,9 +1748,8 @@ ostree_repo_write_content_trusted (OstreeRepo *self,
|
|||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
return write_object (self, OSTREE_OBJECT_TYPE_FILE, checksum,
|
return ostree_repo_write_content (self, checksum, object_input, length,
|
||||||
object_input, length, NULL,
|
NULL, cancellable, error);
|
||||||
cancellable, error);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user