[libgit2-glib] repository: rename get_remote to lookup_remote
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] repository: rename get_remote to lookup_remote
- Date: Sun, 18 Jan 2015 15:59:49 +0000 (UTC)
commit 4e4d9dbdba9f753663a14885d7d2d8ddcfe07af2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jan 18 16:59:30 2015 +0100
repository: rename get_remote to lookup_remote
libgit2-glib/ggit-repository.c | 10 +++++-----
libgit2-glib/ggit-repository.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index 6b48438..6b889ff 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -1744,7 +1744,7 @@ ggit_repository_lookup_branch (GgitRepository *repository,
}
/**
- * ggit_repository_get_remote:
+ * ggit_repository_lookup_remote:
* @repository: a #GgitRepository.
* @name: the remote's name.
* @error: a #GError for error reporting, or %NULL.
@@ -1754,9 +1754,9 @@ ggit_repository_lookup_branch (GgitRepository *repository,
* Returns: (transfer full) (allow-none): a new #GgitRemote or %NULL if there is an error.
*/
GgitRemote *
-ggit_repository_get_remote (GgitRepository *repository,
- const gchar *name,
- GError **error)
+ggit_repository_lookup_remote (GgitRepository *repository,
+ const gchar *name,
+ GError **error)
{
gint ret;
git_remote *remote;
@@ -1765,7 +1765,7 @@ ggit_repository_get_remote (GgitRepository *repository,
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
- ret = git_remote_load (&remote,
+ ret = git_remote_lookup (&remote,
_ggit_native_get (repository),
name);
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index 39ba2d0..e48fd70 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -237,7 +237,7 @@ GgitBranch *ggit_repository_lookup_branch (GgitRepository *re
GgitBranchType branch_type,
GError **error);
-GgitRemote *ggit_repository_get_remote (GgitRepository *repository,
+GgitRemote *ggit_repository_lookup_remote (GgitRepository *repository,
const gchar *name,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]