repo: Move the scanning hardlinks optimization out of prepare_transaction

This is just a terrible API to have. Make the scanning a separate method,
and document it as an optimization.
This commit is contained in:
Jasper St. Pierre committed 2013-09-06 20:31:12 -04:00
1 parent f84504a8c4
commit bd2948e964
6 files changed
+48 -15

No files matched your search

+4 -1
View File
@@ -112,8 +112,11 @@ struct _OstreeRepoTransactionStats {
GType ostree_repo_transaction_stats_get_type (void);
gboolean ostree_repo_scan_hardlinks (OstreeRepo *self,
GCancellable *cancellable,
GError **error);
gboolean ostree_repo_prepare_transaction (OstreeRepo *self,
gboolean enable_commit_hardlink_scan,
gboolean *out_transaction_resume,
GCancellable *cancellable,
GError **error);