static guint git_reset_files_command_run (AnjutaCommand *command) { GitResetFilesCommand *self; self = GIT_RESET_FILES_COMMAND (command); git_command_add_arg (GIT_COMMAND (self), "reset"); git_command_add_arg (GIT_COMMAND (self), self->priv->revision); git_command_add_list_to_args (GIT_COMMAND (self), self->priv->paths); return 0; }
static guint git_add_command_run (AnjutaCommand *command) { GitAddCommand *self; self = GIT_ADD_COMMAND (command); git_command_add_arg (GIT_COMMAND (command), "add"); if (self->priv->force) git_command_add_arg (GIT_COMMAND (command), "-f"); git_command_add_list_to_args (GIT_COMMAND (command), self->priv->paths); return 0; }
static guint git_remove_command_run (AnjutaCommand *command) { GitRemoveCommand *self; self = GIT_REMOVE_COMMAND (command); git_command_add_arg (GIT_COMMAND (command), "rm"); if (self->priv->force) git_command_add_arg (GIT_COMMAND (command), "-f"); git_command_add_list_to_args (GIT_COMMAND (command), self->priv->paths); return 0; }
static guint git_apply_mailbox_command_run (AnjutaCommand *command) { GitApplyMailboxCommand *self; self = GIT_APPLY_MAILBOX_COMMAND (command); git_command_add_arg (GIT_COMMAND (command), "am"); if (self->priv->add_signoff) git_command_add_arg (GIT_COMMAND (command), "--signoff"); git_command_add_list_to_args (GIT_COMMAND (command), self->priv->mailbox_paths); return 0; }
static guint git_branch_delete_command_run (AnjutaCommand *command) { GitBranchDeleteCommand *self; self = GIT_BRANCH_DELETE_COMMAND (command); git_command_add_arg (GIT_COMMAND (command), "branch"); if (self->priv->remote) git_command_add_arg (GIT_COMMAND (command), "-r"); if (self->priv->require_merged) git_command_add_arg (GIT_COMMAND (command), "-d"); else git_command_add_arg (GIT_COMMAND (command), "-D"); git_command_add_list_to_args (GIT_COMMAND (command), self->priv->branches); return 0; }