[anjuta] git: Make GitApplyMailboxCommand take lists of patches
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] git: Make GitApplyMailboxCommand take lists of patches
- Date: Sun, 23 Jan 2011 08:09:54 +0000 (UTC)
commit 8cc60122402c4133233632af55954a76b66341f3
Author: James Liggett <jrliggett cox net>
Date: Sat Jan 22 22:16:22 2011 -0800
git: Make GitApplyMailboxCommand take lists of patches
plugins/git/git-apply-mailbox-command.c | 13 +++++++------
plugins/git/git-apply-mailbox-command.h | 2 +-
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/plugins/git/git-apply-mailbox-command.c b/plugins/git/git-apply-mailbox-command.c
index 67db456..3a32299 100644
--- a/plugins/git/git-apply-mailbox-command.c
+++ b/plugins/git/git-apply-mailbox-command.c
@@ -26,7 +26,7 @@
struct _GitApplyMailboxCommandPriv
{
- gchar *path;
+ GList *mailbox_paths;
gboolean add_signoff;
};
@@ -46,7 +46,7 @@ git_apply_mailbox_command_finalize (GObject *object)
self = GIT_APPLY_MAILBOX_COMMAND (object);
- g_free (self->priv->path);
+ git_command_free_string_list (self->priv->mailbox_paths);
g_free (self->priv);
G_OBJECT_CLASS (git_apply_mailbox_command_parent_class)->finalize (object);
@@ -64,7 +64,8 @@ git_apply_mailbox_command_run (AnjutaCommand *command)
if (self->priv->add_signoff)
git_command_add_arg (GIT_COMMAND (command), "--signoff");
- git_command_add_arg (GIT_COMMAND (command), self->priv->path);
+ git_command_add_list_to_args (GIT_COMMAND (command),
+ self->priv->mailbox_paths);
return 0;
}
@@ -84,8 +85,8 @@ git_apply_mailbox_command_class_init (GitApplyMailboxCommandClass *klass)
GitApplyMailboxCommand *
git_apply_mailbox_command_new (const gchar *working_directory,
- const gchar *path,
- gboolean add_signoff)
+ GList *mailbox_paths,
+ gboolean add_signoff)
{
GitApplyMailboxCommand *self;
@@ -94,7 +95,7 @@ git_apply_mailbox_command_new (const gchar *working_directory,
"single-line-output", TRUE,
NULL);
- self->priv->path = g_strdup (path);
+ self->priv->mailbox_paths = git_command_copy_string_list (mailbox_paths);
self->priv->add_signoff = add_signoff;
return self;
diff --git a/plugins/git/git-apply-mailbox-command.h b/plugins/git/git-apply-mailbox-command.h
index 408f5f7..dbce740 100644
--- a/plugins/git/git-apply-mailbox-command.h
+++ b/plugins/git/git-apply-mailbox-command.h
@@ -55,7 +55,7 @@ struct _GitApplyMailboxCommand
GType git_apply_mailbox_command_get_type (void) G_GNUC_CONST;
GitApplyMailboxCommand *git_apply_mailbox_command_new (const gchar *working_directory,
- const gchar *path,
+ GList *mailbox_paths,
gboolean add_signoff);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]