[libgit2-glib] Fix ggit_repository_create_branch



commit 6cb702c47e8d0448afed383332d69af33d3c44f5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jul 1 00:02:32 2015 +0200

    Fix ggit_repository_create_branch
    
    The signature and log_message were removed

 libgit2-glib/ggit-repository.c |   10 +---------
 libgit2-glib/ggit-repository.h |    2 --
 2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index ca69ee6..e56e9ed 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -1657,8 +1657,6 @@ ggit_repository_tag_foreach (GgitRepository   *repository,
  * @branch_name: the name of the branch.
  * @target: a #GgitObject.
  * @flags: a #GgitCreateFlags.
- * @signature: a #GgitSignature that will used to populate the reflog entry.
- * @log_message: The one line long message to be appended to the reflog.
  * @error: a #GError for error reporting, or %NULL.
  *
  * Creates a new branch pointing at a target commit.
@@ -1671,8 +1669,6 @@ ggit_repository_create_branch (GgitRepository   *repository,
                                const gchar      *branch_name,
                                GgitObject       *target,
                                GgitCreateFlags   flags,
-                               GgitSignature    *signature,
-                               const gchar      *log_message,
                                GError          **error)
 {
        gboolean force;
@@ -1682,8 +1678,6 @@ ggit_repository_create_branch (GgitRepository   *repository,
        g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), FALSE);
        g_return_val_if_fail (branch_name != NULL, FALSE);
        g_return_val_if_fail (GGIT_IS_OBJECT (target), FALSE);
-       g_return_val_if_fail (GGIT_IS_SIGNATURE (signature), FALSE);
-       g_return_val_if_fail (log_message != NULL, FALSE);
        g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
        force = flags & GGIT_CREATE_FORCE;
@@ -1692,9 +1686,7 @@ ggit_repository_create_branch (GgitRepository   *repository,
                                 _ggit_native_get (repository),
                                 branch_name,
                                 _ggit_native_get (target),
-                                force ? 1 : 0,
-                                _ggit_native_get (signature),
-                                log_message);
+                                force ? 1 : 0);
 
        if (ret != GIT_OK)
        {
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index 3af8962..653a968 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -224,8 +224,6 @@ GgitBranch         *ggit_repository_create_branch     (GgitRepository        *re
                                                        const gchar           *branch_name,
                                                        GgitObject            *target,
                                                        GgitCreateFlags        flags,
-                                                       GgitSignature         *signature,
-                                                       const gchar           *log_message,
                                                        GError               **error);
 
 GgitBranchEnumerator *ggit_repository_enumerate_branches (GgitRepository        *repository,


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