[libgit2-glib] Rename _head_orphan to _head_unborn



commit 058034b66df900d68728923ef13e429c45e02979
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Fri Nov 22 20:39:20 2013 +0100

    Rename _head_orphan to _head_unborn

 libgit2-glib/ggit-repository.c |    6 +++---
 libgit2-glib/ggit-repository.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index a34c2c6..0266462 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -836,7 +836,7 @@ ggit_repository_is_head_detached (GgitRepository  *repository,
 }
 
 /**
- * ggit_repository_is_head_orphan:
+ * ggit_repository_is_head_unborn:
  * @repository: a #GgitRepository.
  * @error: a #GError for error reporting, or %NULL.
  *
@@ -848,7 +848,7 @@ ggit_repository_is_head_detached (GgitRepository  *repository,
  * Returns: %TRUE if the current branch is an orphan.
  */
 gboolean
-ggit_repository_is_head_orphan (GgitRepository  *repository,
+ggit_repository_is_head_unborn (GgitRepository  *repository,
                                 GError         **error)
 {
        gint ret;
@@ -856,7 +856,7 @@ ggit_repository_is_head_orphan (GgitRepository  *repository,
        g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE);
        g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
-       ret = git_repository_head_orphan (_ggit_native_get (repository));
+       ret = git_repository_head_unborn (_ggit_native_get (repository));
 
        if (ret < 0)
        {
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index 4b86bd6..94eac5e 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -228,7 +228,7 @@ GFile              *ggit_repository_discover          (GFile                 *lo
 gboolean            ggit_repository_is_head_detached  (GgitRepository        *repository,
                                                        GError               **error);
 
-gboolean            ggit_repository_is_head_orphan    (GgitRepository        *repository,
+gboolean            ggit_repository_is_head_unborn    (GgitRepository        *repository,
                                                        GError               **error);
 
 gboolean            ggit_repository_is_empty          (GgitRepository        *repository,


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