[libgit2-glib/wip/development] Fix repository
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/development] Fix repository
- Date: Wed, 5 Jun 2013 12:53:26 +0000 (UTC)
commit f2fc9c1b5db0475430047271bbc06e43d5f0e6ad
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jun 5 14:53:09 2013 +0200
Fix repository
libgit2-glib/ggit-repository.c | 24 ++++++++++--------------
libgit2-glib/ggit-repository.h | 9 ++++-----
libgit2-glib/ggit-types.h | 8 ++++----
3 files changed, 18 insertions(+), 23 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index 0e79150..7f77232 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -1055,10 +1055,9 @@ ggit_repository_file_status_foreach (GgitRepository *repository,
}
/**
- * ggit_repository_references_foreach:
+ * ggit_repository_references_foreach_name:
* @repository: a #GgitRepository.
- * @reftype: a #GgitRefType
- * @callback: (scope call): a #GgitReferencesCallback.
+ * @callback: (scope call): a #GgitReferencesNameCallback.
* @user_data: callback user data.
* @error: a #GError for error reporting, or %NULL.
*
@@ -1066,18 +1065,16 @@ ggit_repository_file_status_foreach (GgitRepository *repository,
*
* To the callback is passed the name of the reference and the data pointer
* passed to this function. If the callback returns something other than
- * 0, the iteration will stop and @error will be set. The references are
- * filtered by @reftype.
+ * 0, the iteration will stop and @error will be set.
*
* Returns: %TRUE if there was no error, %FALSE otherwise
*
*/
gboolean
-ggit_repository_references_foreach (GgitRepository *repository,
- GgitRefType reftype,
- GgitReferencesCallback callback,
- gpointer user_data,
- GError **error)
+ggit_repository_references_foreach_name (GgitRepository *repository,
+ GgitReferencesNameCallback callback,
+ gpointer user_data,
+ GError **error)
{
gint ret;
@@ -1085,10 +1082,9 @@ ggit_repository_references_foreach (GgitRepository *repository,
g_return_val_if_fail (callback != NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- ret = git_reference_foreach (_ggit_native_get (repository),
- reftype,
- callback,
- user_data);
+ ret = git_reference_foreach_name (_ggit_native_get (repository),
+ callback,
+ user_data);
if (ret != GIT_OK)
{
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index 520f1ee..c6056d0 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -191,11 +191,10 @@ gboolean ggit_repository_file_status_foreach
gpointer user_data,
GError **error);
-gboolean ggit_repository_references_foreach (GgitRepository *repository,
- GgitRefType reftype,
- GgitReferencesCallback callback,
- gpointer user_data,
- GError **error);
+gboolean ggit_repository_references_foreach_name (GgitRepository *repository,
+ GgitReferencesNameCallback callback,
+ gpointer user_data,
+ GError **error);
GgitConfig *ggit_repository_get_config (GgitRepository *repository,
GError **error);
diff --git a/libgit2-glib/ggit-types.h b/libgit2-glib/ggit-types.h
index 8106286..07f31bd 100644
--- a/libgit2-glib/ggit-types.h
+++ b/libgit2-glib/ggit-types.h
@@ -779,17 +779,17 @@ typedef gint (* GgitDiffLineCallback) (GgitDiffDelta *delta,
gpointer user_data);
/**
- * GgitReferencesCallback:
+ * GgitReferencesNameCallback:
* @name: the name of the reference
* @user_data: (closure): user-supplied data.
*
* The type of the callback functions for retrieving the references
- * in a #GgitRepository. See ggit_repository_references_foreach().
+ * in a #GgitRepository. See ggit_repository_references_foreach_name().
*
* Returns: 0 to go for the next references or a #GgitError in case there was an error.
*/
-typedef gint (* GgitReferencesCallback) (const gchar *name,
- gpointer user_data);
+typedef gint (* GgitReferencesNameCallback) (const gchar *name,
+ gpointer user_data);
/**
* GgitRemoteListCallback:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]