summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-file.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-12-21 21:42:13 -0500
committerColin Walters <walters@verbum.org>2011-12-21 21:42:13 -0500
commite9fd921afe09266047d8ebbff633ada95c3f55f1 (patch)
tree643c929e6d6a9a552e67304d5f6ba40f992a38ff /src/libostree/ostree-repo-file.c
parentadd55849abf4f9f18442beebe0067aa50b55aa7f (diff)
downloadostree-e9fd921afe09266047d8ebbff633ada95c3f55f1.tar.gz
core: Change compose to operate purely in-memory
This is *significantly* faster than checking out each branch into the real filesystem, then importing it again.
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 083e770a..818bd6dc 100644
--- a/src/libostree/ostree-repo-file.c
+++ b/src/libostree/ostree-repo-file.c
@@ -280,6 +280,12 @@ ostree_repo_file_ensure_resolved (OstreeRepoFile *self,
return TRUE;
}
+const char *
+ostree_repo_file_get_commit (OstreeRepoFile *self)
+{
+ return ostree_repo_file_get_root (self)->commit;
+}
+
gboolean
ostree_repo_file_get_xattrs (OstreeRepoFile *self,
GVariant **out_xattrs,