[libgit2-glib/wip/development] Fix ggit_repository_create_reference



commit 38e7fbff4d72b594b3df18742360e56f7337a723
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Apr 26 16:20:01 2014 +0200

    Fix ggit_repository_create_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 b37d7a9..b668f38 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -640,6 +640,8 @@ ggit_repository_lookup_reference (GgitRepository  *repository,
  * @repository: a #GgitRepository.
  * @name: the name for the new #GgitRef.
  * @oid: the #GgitOId pointed to by 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 object id reference.
@@ -653,6 +655,8 @@ GgitRef *
 ggit_repository_create_reference (GgitRepository  *repository,
                                   const gchar     *name,
                                   GgitOId         *oid,
+                                  GgitSignature   *signature,
+                                  const gchar     *log_message,
                                   GError         **error)
 {
        GgitRef *ref = NULL;
@@ -664,7 +668,8 @@ ggit_repository_create_reference (GgitRepository  *repository,
        g_return_val_if_fail (oid != NULL, NULL);
 
        ret = git_reference_create (&reference, _ggit_native_get (repository),
-                                   name, _ggit_oid_get_oid (oid), FALSE);
+                                   name, _ggit_oid_get_oid (oid), 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 55e2c51..ed3347c 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -97,6 +97,8 @@ GgitRef            *ggit_repository_lookup_reference  (GgitRepository        *re
 GgitRef            *ggit_repository_create_reference  (GgitRepository        *repository,
                                                        const gchar           *name,
                                                        GgitOId               *oid,
+                                                       GgitSignature         *signature,
+                                                       const gchar           *log_message,
                                                        GError               **error);
 
 GgitRef            *ggit_repository_create_symbolic_reference


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