core: Clean up checkout code

Take a GFile * for destination.  Also, we only need one recursive
function, not two.
This commit is contained in:
Colin Walters committed 2011-12-08 10:28:44 -05:00
1 parent 15d23546ff
commit dccd106731
4 files changed
+48 -102

No files matched your search

+6 -6
View File
@@ -136,12 +136,12 @@ typedef enum {
OSTREE_REPO_CHECKOUT_MODE_USER
} OstreeRepoCheckoutMode;
gboolean ostree_repo_checkout (OstreeRepo *self,
OstreeRepoCheckoutMode mode,
const char *ref,
const char *destination,
GCancellable *cancellable,
GError **error);
gboolean ostree_repo_checkout (OstreeRepo *self,
OstreeRepoCheckoutMode mode,
const char *ref,
GFile *destination,
GCancellable *cancellable,
GError **error);
gboolean ostree_repo_read_commit (OstreeRepo *self,
const char *rev,