[libgit2-glib/wip/development: 3/12] Fix ggit_branch_move
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib/wip/development: 3/12] Fix ggit_branch_move
- Date: Sat, 26 Apr 2014 14:15:02 +0000 (UTC)
commit 216725e6f1de98f365a74f680b49aa2f766cddfc
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Apr 26 15:24:03 2014 +0200
Fix ggit_branch_move
libgit2-glib/ggit-branch.c | 10 ++++++++--
libgit2-glib/ggit-branch.h | 2 ++
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-branch.c b/libgit2-glib/ggit-branch.c
index 0a23e70..39d100f 100644
--- a/libgit2-glib/ggit-branch.c
+++ b/libgit2-glib/ggit-branch.c
@@ -75,7 +75,9 @@ ggit_branch_delete (GgitBranch *branch,
* ggit_branch_move:
* @branch: a #GgitBranch.
* @new_branch_name: target name of the branch once the move is performed; this name is validated for
consistency.
- * @flags: a GgitCreateFlags.
+ * @flags: a #GgitCreateFlags.
+ * @signature: a #GgitSignature 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.
*
* Moves/renames an existing branch reference.
@@ -86,6 +88,8 @@ GgitBranch *
ggit_branch_move (GgitBranch *branch,
const gchar *new_branch_name,
GgitCreateFlags flags,
+ GgitSignature *signature,
+ const gchar *log_message,
GError **error)
{
git_reference *out;
@@ -101,7 +105,9 @@ ggit_branch_move (GgitBranch *branch,
ret = git_branch_move (&out,
_ggit_native_get (branch),
new_branch_name,
- force ? 1 : 0);
+ force ? 1 : 0,
+ _ggit_native_get (signature),
+ log_message);
if (ret != GIT_OK)
{
diff --git a/libgit2-glib/ggit-branch.h b/libgit2-glib/ggit-branch.h
index 06a8bfe..230ae18 100644
--- a/libgit2-glib/ggit-branch.h
+++ b/libgit2-glib/ggit-branch.h
@@ -59,6 +59,8 @@ void ggit_branch_delete (GgitBranch *branch,
GgitBranch *ggit_branch_move (GgitBranch *branch,
const gchar *new_branch_name,
GgitCreateFlags flags,
+ GgitSignature *signature,
+ const gchar *log_message,
GError **error);
const gchar *ggit_branch_get_name (GgitBranch *branch,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]