[libgit2-glib/wip/development] Fix ggit_repository_create_symbolic_reference



commit fe5abf1c27d902fc72e3526b10f264654fd22b0b
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Apr 26 21:16:16 2014 +0200

    Fix ggit_repository_create_symbolic_reference

 libgit2-glib/ggit-repository.c |    7 ++++++-
 libgit2-glib/ggit-repository.h |    2 ++
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index b668f38..ad22cc3 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -688,6 +688,8 @@ ggit_repository_create_reference (GgitRepository  *repository,
  * @repository: a #GgitRepository.
  * @name: the name for the new #GgitRef.
  * @target: the full name to the reference.
+ * @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 symbolic reference.
@@ -701,6 +703,8 @@ GgitRef *
 ggit_repository_create_symbolic_reference (GgitRepository  *repository,
                                            const gchar     *name,
                                            const gchar     *target,
+                                           GgitSignature   *signature,
+                                           const gchar     *log_message,
                                            GError         **error)
 {
        GgitRef *ref = NULL;
@@ -712,7 +716,8 @@ ggit_repository_create_symbolic_reference (GgitRepository  *repository,
        g_return_val_if_fail (target != NULL, NULL);
 
        ret = git_reference_symbolic_create (&reference, _ggit_native_get (repository),
-                                            name, target, FALSE);
+                                            name, target, FALSE,
+                                            _ggit_native_get (signature), log_message);
 
        if (ret == GIT_OK)
        {
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index ed3347c..b3b2445 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -105,6 +105,8 @@ GgitRef            *ggit_repository_create_symbolic_reference
                                                       (GgitRepository        *repository,
                                                        const gchar           *name,
                                                        const gchar           *target,
+                                                       GgitSignature         *signature,
+                                                       const gchar           *log_message,
                                                        GError               **error);
 
 GgitBlobOutputStream *


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