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:
Colin Walters 2017-05-23 14:58:03 -04:00 committed by Atomic Bot
parent 22b1234f52
commit d2a92df155
1 changed files with 2 additions and 3 deletions

View File

@ -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);
} }
/** /**