From: Colin Walters Date: Tue, 23 May 2017 18:58:03 +0000 (-0400) Subject: repo/commit: Dedup content writing API implementation X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~317^2^2~56 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2a92df1552c979a562ce6c7a69a9fe0da08e55c;p=ostree.git 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 --- diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c index c788f7e6..a6d5f430 100644 --- a/src/libostree/ostree-repo-commit.c +++ b/src/libostree/ostree-repo-commit.c @@ -1748,9 +1748,8 @@ ostree_repo_write_content_trusted (OstreeRepo *self, GCancellable *cancellable, GError **error) { - return write_object (self, OSTREE_OBJECT_TYPE_FILE, checksum, - object_input, length, NULL, - cancellable, error); + return ostree_repo_write_content (self, checksum, object_input, length, + NULL, cancellable, error); } /**