repo: Rename "stage" to "write" in the API
An earlier version of this API acted like git in that some objects would be staged in a temporary directory which would be then committed in one go by moving files around. The API doesn't match most users expectations though, as while the stage is nice as a high-level API it isn't really suited for low-level APIs. While the stage was removed, the APIs were never renamed. Rename them now so that they match expectations. https://bugzilla.gnome.org/show_bug.cgi?id=707644
This commit is contained in:
1 parent
c817217ad8
commit
5082e1d8e9
9 files changed
+134
-134
No files matched your search
+12
-12
@@ -109,7 +109,7 @@ gboolean ostree_repo_has_object (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_metadata (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_metadata (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const char *expected_checksum,
|
||||
GVariant *object,
|
||||
@@ -117,7 +117,7 @@ gboolean ostree_repo_stage_metadata (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void ostree_repo_stage_metadata_async (OstreeRepo *self,
|
||||
void ostree_repo_write_metadata_async (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const char *expected_checksum,
|
||||
GVariant *object,
|
||||
@@ -125,12 +125,12 @@ void ostree_repo_stage_metadata_async (OstreeRepo *self,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean ostree_repo_stage_metadata_finish (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_metadata_finish (OstreeRepo *self,
|
||||
GAsyncResult *result,
|
||||
guchar **out_csum,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_content (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_content (OstreeRepo *self,
|
||||
const char *expected_checksum,
|
||||
GInputStream *object_input,
|
||||
guint64 length,
|
||||
@@ -138,21 +138,21 @@ gboolean ostree_repo_stage_content (OstreeRepo *self,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_metadata_trusted (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_metadata_trusted (OstreeRepo *self,
|
||||
OstreeObjectType objtype,
|
||||
const char *checksum,
|
||||
GVariant *variant,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_content_trusted (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_content_trusted (OstreeRepo *self,
|
||||
const char *checksum,
|
||||
GInputStream *object_input,
|
||||
guint64 length,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void ostree_repo_stage_content_async (OstreeRepo *self,
|
||||
void ostree_repo_write_content_async (OstreeRepo *self,
|
||||
const char *expected_checksum,
|
||||
GInputStream *object,
|
||||
guint64 length,
|
||||
@@ -160,7 +160,7 @@ void ostree_repo_stage_content_async (OstreeRepo *self,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
gboolean ostree_repo_stage_content_finish (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_content_finish (OstreeRepo *self,
|
||||
GAsyncResult *result,
|
||||
guchar **out_csum,
|
||||
GError **error);
|
||||
@@ -280,14 +280,14 @@ GType ostree_repo_commit_modifier_get_type (void);
|
||||
OstreeRepoCommitModifier *ostree_repo_commit_modifier_ref (OstreeRepoCommitModifier *modifier);
|
||||
void ostree_repo_commit_modifier_unref (OstreeRepoCommitModifier *modifier);
|
||||
|
||||
gboolean ostree_repo_stage_directory_to_mtree (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_directory_to_mtree (OstreeRepo *self,
|
||||
GFile *dir,
|
||||
OstreeMutableTree *mtree,
|
||||
OstreeRepoCommitModifier *modifier,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_archive_to_mtree (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_archive_to_mtree (OstreeRepo *self,
|
||||
GFile *archive,
|
||||
OstreeMutableTree *tree,
|
||||
OstreeRepoCommitModifier *modifier,
|
||||
@@ -295,13 +295,13 @@ gboolean ostree_repo_stage_archive_to_mtree (OstreeRepo *
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_mtree (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_mtree (OstreeRepo *self,
|
||||
OstreeMutableTree *mtree,
|
||||
char **out_contents_checksum,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_stage_commit (OstreeRepo *self,
|
||||
gboolean ostree_repo_write_commit (OstreeRepo *self,
|
||||
const char *branch,
|
||||
const char *parent,
|
||||
const char *subject,
|
||||
|
||||
Reference in new issue
Block a user