[libgit2-glib] Fix create_reference methods
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix create_reference methods
- Date: Tue, 30 Jun 2015 22:07:04 +0000 (UTC)
commit 84527bf720a57908a700f2210f3a439fc7dddc45
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jul 1 00:04:49 2015 +0200
Fix create_reference methods
They do not get a signature anymore
libgit2-glib/ggit-repository.c | 10 ++--------
libgit2-glib/ggit-repository.h | 2 --
2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/libgit2-glib/ggit-repository.c b/libgit2-glib/ggit-repository.c
index e56e9ed..9363482 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -736,7 +736,6 @@ 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.
*
@@ -751,7 +750,6 @@ GgitRef *
ggit_repository_create_reference (GgitRepository *repository,
const gchar *name,
GgitOId *oid,
- GgitSignature *signature,
const gchar *log_message,
GError **error)
{
@@ -762,13 +760,12 @@ ggit_repository_create_reference (GgitRepository *repository,
g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), NULL);
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (oid != NULL, NULL);
- g_return_val_if_fail (GGIT_IS_SIGNATURE (signature), NULL);
g_return_val_if_fail (log_message != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
ret = git_reference_create (&reference, _ggit_native_get (repository),
name, _ggit_oid_get_oid (oid), FALSE,
- _ggit_native_get (signature), log_message);
+ log_message);
if (ret == GIT_OK)
{
@@ -787,7 +784,6 @@ 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.
*
@@ -802,7 +798,6 @@ GgitRef *
ggit_repository_create_symbolic_reference (GgitRepository *repository,
const gchar *name,
const gchar *target,
- GgitSignature *signature,
const gchar *log_message,
GError **error)
{
@@ -813,13 +808,12 @@ ggit_repository_create_symbolic_reference (GgitRepository *repository,
g_return_val_if_fail (GGIT_IS_REPOSITORY (repository), NULL);
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (target != NULL, NULL);
- g_return_val_if_fail (GGIT_IS_SIGNATURE (signature), NULL);
g_return_val_if_fail (log_message != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
ret = git_reference_symbolic_create (&reference, _ggit_native_get (repository),
name, target, FALSE,
- _ggit_native_get (signature), log_message);
+ log_message);
if (ret == GIT_OK)
{
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index 653a968..bea9d8e 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -99,7 +99,6 @@ 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);
@@ -107,7 +106,6 @@ GgitRef *ggit_repository_create_symbolic_reference
(GgitRepository *repository,
const gchar *name,
const gchar *target,
- GgitSignature *signature,
const gchar *log_message,
GError **error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]