[libgit2-glib] Fix repository_reset
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] Fix repository_reset
- Date: Tue, 30 Jun 2015 22:07:09 +0000 (UTC)
commit 4dfed8d1ea1dc23424cf9fe23660088a7170698e
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jul 1 00:06:35 2015 +0200
Fix repository_reset
It does not get a signature and a log_message anymore
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 9363482..943ea31 100644
--- a/libgit2-glib/ggit-repository.c
+++ b/libgit2-glib/ggit-repository.c
@@ -2021,8 +2021,6 @@ ggit_repository_submodule_foreach (GgitRepository *repository,
* @target: the target #GgitObject which is a commit or a tag.
* @reset_type: the #GgitResetType to perform.
* @checkout_options: the #GgitCheckoutOptions to be used for a HARD reset.
- * @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.
*
* Performs a reset of type @reset_type on @repository to @target,
@@ -2033,8 +2031,6 @@ ggit_repository_reset (GgitRepository *repository,
GgitObject *target,
GgitResetType reset_type,
GgitCheckoutOptions *checkout_options,
- GgitSignature *signature,
- const gchar *log_message,
GError **error)
{
gint ret;
@@ -2042,16 +2038,12 @@ ggit_repository_reset (GgitRepository *repository,
g_return_if_fail (GGIT_IS_REPOSITORY (repository));
g_return_if_fail (GGIT_IS_OBJECT (target));
g_return_if_fail (GGIT_IS_CHECKOUT_OPTIONS (checkout_options));
- g_return_if_fail (GGIT_IS_SIGNATURE (signature));
- g_return_if_fail (log_message != NULL);
g_return_if_fail (error == NULL || *error == NULL);
ret = git_reset (_ggit_native_get (repository),
_ggit_native_get (target),
(git_reset_t)reset_type,
- (git_checkout_options *)_ggit_checkout_options_get_checkout_options
(checkout_options),
- _ggit_native_get (signature),
- log_message);
+ (git_checkout_options *)_ggit_checkout_options_get_checkout_options
(checkout_options));
if (ret != GIT_OK)
{
diff --git a/libgit2-glib/ggit-repository.h b/libgit2-glib/ggit-repository.h
index bea9d8e..82e9f57 100644
--- a/libgit2-glib/ggit-repository.h
+++ b/libgit2-glib/ggit-repository.h
@@ -309,8 +309,6 @@ void ggit_repository_reset (GgitRepository
GgitObject *target,
GgitResetType reset_type,
GgitCheckoutOptions *checkout_options,
- GgitSignature *signature,
- const gchar *log_message,
GError **error);
void ggit_repository_reset_default (GgitRepository *repository,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]