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 authored and Atomic Bot committed 2017-06-01 18:43:38 +00:00
1 parent 22b1234f52
commit d2a92df155
1 file changed
+2 -3
+2 -3
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);
}
/**