[libgit2-glib/wip/development] Fix remote



commit 91127dcd4bf5fe25170475126362fff9c9bc5d9d
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jun 5 14:40:35 2013 +0200

    Fix remote

 docs/reference/libgit2-glib-1.0-sections.txt |    3 +-
 libgit2-glib/ggit-remote.c                   |   29 +------------------------
 libgit2-glib/ggit-remote.h                   |    3 +-
 3 files changed, 4 insertions(+), 31 deletions(-)
---
diff --git a/docs/reference/libgit2-glib-1.0-sections.txt b/docs/reference/libgit2-glib-1.0-sections.txt
index 788d712..f2e433c 100644
--- a/docs/reference/libgit2-glib-1.0-sections.txt
+++ b/docs/reference/libgit2-glib-1.0-sections.txt
@@ -589,8 +589,7 @@ ggit_remote_connect
 ggit_remote_get_connected
 ggit_remote_disconnect
 ggit_remote_add_fetch_spec
-ggit_remote_get_fetch_spec
-ggit_remote_set_push_spec
+ggit_remote_add_push_spec
 ggit_remote_list
 ggit_remote_is_valid_url
 ggit_remote_is_supported_url
diff --git a/libgit2-glib/ggit-remote.c b/libgit2-glib/ggit-remote.c
index 66411e7..f554d2c 100644
--- a/libgit2-glib/ggit-remote.c
+++ b/libgit2-glib/ggit-remote.c
@@ -266,32 +266,7 @@ ggit_remote_add_fetch_spec (GgitRemote   *remote,
 }
 
 /**
- * ggit_remote_get_fetch_spec:
- * @remote: a #GgitRemote.
- *
- * Gets @remote's fetch spec.
- *
- * Returns: the fetch spec of the remote, or %NULL.
- */
-GgitRefSpec *
-ggit_remote_get_fetch_spec (GgitRemote *remote)
-{
-       const git_refspec *refspec;
-
-       g_return_val_if_fail (remote != NULL, NULL);
-
-       refspec = git_remote_fetchspec (remote->remote);
-
-       if (refspec == NULL)
-       {
-               return NULL;
-       }
-
-       return _ggit_ref_spec_wrap (refspec);
-}
-
-/**
- * ggit_remote_set_push_spec:
+ * ggit_remote_add_push_spec:
  * @remote: a #GgitRemote.
  * @push_spec: the push refspec.
  * @error: a #GError for error reporting, or %NULL.
@@ -299,7 +274,7 @@ ggit_remote_get_fetch_spec (GgitRemote *remote)
  * Sets @remote's push spec to @fetch_spec.
  */
 void
-ggit_remote_set_push_spec (GgitRemote   *remote,
+ggit_remote_add_push_spec (GgitRemote   *remote,
                            const gchar  *push_spec,
                            GError      **error)
 {
diff --git a/libgit2-glib/ggit-remote.h b/libgit2-glib/ggit-remote.h
index e4596f4..61e3e19 100644
--- a/libgit2-glib/ggit-remote.h
+++ b/libgit2-glib/ggit-remote.h
@@ -61,9 +61,8 @@ void               ggit_remote_disconnect               (GgitRemote       *remot
 void               ggit_remote_add_fetch_spec           (GgitRemote       *remote,
                                                          const gchar      *fetch_spec,
                                                          GError          **error);
-GgitRefSpec       *ggit_remote_get_fetch_spec           (GgitRemote       *remote);
 
-void               ggit_remote_set_push_spec            (GgitRemote       *remote,
+void               ggit_remote_add_push_spec            (GgitRemote       *remote,
                                                          const gchar      *push_spec,
                                                          GError          **error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]