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

View File

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