summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-file.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-09-06 19:35:23 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-09-08 11:50:51 -0400
commitf49ed9e74d8cf7b6d900be9e40cf1daf5dde11d0 (patch)
treece55da0159382813443e85a3aa044cabf5c44421 /src/libostree/ostree-repo-file.c
parent8ac0f99ed6ac873ee80f04c1b72de73bbd32dba1 (diff)
downloadostree-f49ed9e74d8cf7b6d900be9e40cf1daf5dde11d0.tar.gz
builtin-commit: Don't parse the parent's GVariant by hand
Instead, use OstreeRepoFile as a handle for the parent commit. We need to add an accessor for the metadata checksum, as that hasn't been exposed before. https://bugzilla.gnome.org/show_bug.cgi?id=707727
Diffstat (limited to 'src/libostree/ostree-repo-file.c')
-rw-r--r--src/libostree/ostree-repo-file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c
index aff60371..994d554c 100644
--- a/src/libostree/ostree-repo-file.c
+++ b/src/libostree/ostree-repo-file.c
@@ -362,6 +362,12 @@ ostree_repo_file_tree_get_contents_checksum (OstreeRepoFile *self)
return self->tree_contents_checksum;
}
+const char *
+ostree_repo_file_tree_get_metadata_checksum (OstreeRepoFile *self)
+{
+ return self->tree_metadata_checksum;
+}
+
/**
* ostree_repo_file_nontree_get_local:
*