libostree: add new API ostree_repo_write_commit_with_time
It extends ostree_repo_write_commit as it permits to override the commit timestamp. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
1 parent
b393e5a2e9
commit
14ffd7022a
3 files changed
+58
-5
No files matched your search
@@ -452,6 +452,17 @@ gboolean ostree_repo_write_commit (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_write_commit_with_time (OstreeRepo *self,
|
||||
const char *parent,
|
||||
const char *subject,
|
||||
const char *body,
|
||||
GVariant *metadata,
|
||||
OstreeRepoFile *root,
|
||||
guint64 time,
|
||||
char **out_commit,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_read_commit_detached_metadata (OstreeRepo *self,
|
||||
const char *checksum,
|
||||
GVariant **out_metadata,
|
||||
|
||||
Reference in new issue
Block a user