[libgit2-glib] Update submodule to new api
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Update submodule to new api
- Date: Tue, 4 Dec 2012 12:52:32 +0000 (UTC)
commit 77d5284720fdc28c9b4ea241d50ba55243a2f208
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Dec 4 13:45:46 2012 +0100
Update submodule to new api
libgit2-glib/ggit-submodule.c | 22 +++++++++++-----------
libgit2-glib/ggit-submodule.h | 6 +++---
2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/libgit2-glib/ggit-submodule.c b/libgit2-glib/ggit-submodule.c
index f0dbe1d..bdaa2f8 100644
--- a/libgit2-glib/ggit-submodule.c
+++ b/libgit2-glib/ggit-submodule.c
@@ -215,7 +215,7 @@ ggit_submodule_set_url (GgitSubmodule *submodule,
}
/**
- * ggit_submodule_get_index_oid:
+ * ggit_submodule_get_index_id:
* @submodule: a #GgitSubmodule.
*
* Gets the OID for the submodule in the index or %NULL if there is no index.
@@ -223,15 +223,15 @@ ggit_submodule_set_url (GgitSubmodule *submodule,
* Returns: (transfer full) (allow-none): the OID for the submodule in the index or %NULL.
*/
GgitOId *
-ggit_submodule_get_index_oid (GgitSubmodule *submodule)
+ggit_submodule_get_index_id (GgitSubmodule *submodule)
{
GgitOId *oid = NULL;
g_return_val_if_fail (submodule != NULL, NULL);
- if (git_submodule_index_oid (submodule->submodule))
+ if (git_submodule_index_id (submodule->submodule))
{
- oid = _ggit_oid_wrap (git_submodule_index_oid (submodule->submodule));
+ oid = _ggit_oid_wrap (git_submodule_index_id (submodule->submodule));
}
return oid;
@@ -246,22 +246,22 @@ ggit_submodule_get_index_oid (GgitSubmodule *submodule)
* Returns: (transfer full) (allow-none): the OID for the submodule in the current HEAD tree or %NULL.
*/
GgitOId *
-ggit_submodule_get_head_oid (GgitSubmodule *submodule)
+ggit_submodule_get_head_id (GgitSubmodule *submodule)
{
GgitOId *oid = NULL;
g_return_val_if_fail (submodule != NULL, NULL);
- if (git_submodule_head_oid (submodule->submodule))
+ if (git_submodule_head_id (submodule->submodule))
{
- oid = _ggit_oid_wrap (git_submodule_head_oid (submodule->submodule));
+ oid = _ggit_oid_wrap (git_submodule_head_id (submodule->submodule));
}
return oid;
}
/**
- * ggit_submodule_get_workdir_oid:
+ * ggit_submodule_get_workdir_id:
* @submodule: a #GgitSubmodule.
*
* Gets the OID for the submodule in the current working directory.
@@ -273,15 +273,15 @@ ggit_submodule_get_head_oid (GgitSubmodule *submodule)
* Returns: (transfer full) (allow-none): the OID for the submodule in the current working directory or %NULL.
*/
GgitOId *
-ggit_submodule_get_workdir_oid (GgitSubmodule *submodule)
+ggit_submodule_get_workdir_id (GgitSubmodule *submodule)
{
GgitOId *oid = NULL;
g_return_val_if_fail (submodule != NULL, NULL);
- if (git_submodule_wd_oid (submodule->submodule))
+ if (git_submodule_wd_id (submodule->submodule))
{
- oid = _ggit_oid_wrap (git_submodule_wd_oid (submodule->submodule));
+ oid = _ggit_oid_wrap (git_submodule_wd_id (submodule->submodule));
}
return oid;
diff --git a/libgit2-glib/ggit-submodule.h b/libgit2-glib/ggit-submodule.h
index 979f7e7..b0108e6 100644
--- a/libgit2-glib/ggit-submodule.h
+++ b/libgit2-glib/ggit-submodule.h
@@ -53,11 +53,11 @@ void ggit_submodule_set_url (GgitSubmodule
const gchar *url,
GError **error);
-GgitOId *ggit_submodule_get_index_oid (GgitSubmodule *submodule);
+GgitOId *ggit_submodule_get_index_id (GgitSubmodule *submodule);
-GgitOId *ggit_submodule_get_head_oid (GgitSubmodule *submodule);
+GgitOId *ggit_submodule_get_head_id (GgitSubmodule *submodule);
-GgitOId *ggit_submodule_get_workdir_oid (GgitSubmodule *submodule);
+GgitOId *ggit_submodule_get_workdir_id (GgitSubmodule *submodule);
GgitSubmoduleIgnore ggit_submodule_get_ignore (GgitSubmodule *submodule);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]