[libgit2-glib] Bind git_remote_get_owner
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Bind git_remote_get_owner
- Date: Wed, 24 Dec 2014 12:36:23 +0000 (UTC)
commit 4fe86d353ced0472fb48a7302efd0d81b4647a55
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Dec 24 13:36:03 2014 +0100
Bind git_remote_get_owner
libgit2-glib/ggit-remote.c | 17 +++++++++++++++++
libgit2-glib/ggit-remote.h | 2 ++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/libgit2-glib/ggit-remote.c b/libgit2-glib/ggit-remote.c
index 59d1cca..5b4c759 100644
--- a/libgit2-glib/ggit-remote.c
+++ b/libgit2-glib/ggit-remote.c
@@ -442,6 +442,23 @@ ggit_remote_new_anonymous (GgitRepository *repository,
}
/**
+ * ggit_remote_get_owner:
+ * @remote: a #GgitRemote.
+ *
+ * Gets the repository where @remote resides.
+ *
+ * Returns: (transfer full): the repository where the remote resides.
+ */
+GgitRepository *
+ggit_remote_get_owner (GgitRemote *remote)
+{
+ g_return_val_if_fail (GGIT_IS_REMOTE (remote), NULL);
+
+ return _ggit_repository_wrap (git_remote_owner (_ggit_native_get (remote)),
+ FALSE);
+}
+
+/**
* ggit_remote_save:
* @remote: a #GgitRemote.
* @error: a #GError or %NULL.
diff --git a/libgit2-glib/ggit-remote.h b/libgit2-glib/ggit-remote.h
index ec58714..596f129 100644
--- a/libgit2-glib/ggit-remote.h
+++ b/libgit2-glib/ggit-remote.h
@@ -87,6 +87,8 @@ GgitRemote *ggit_remote_new_anonymous (GgitRepository *repos
const gchar *fetch,
GError **error);
+GgitRepository *ggit_remote_get_owner (GgitRemote *remote);
+
void ggit_remote_save (GgitRemote *remote,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]