[gitg/wip/sindhus/interactive-rebase] Add a RebaseController
- From: Sindhu Sundar <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/sindhus/interactive-rebase] Add a RebaseController
- Date: Wed, 11 Sep 2013 14:30:46 +0000 (UTC)
commit e0ee90d1b017c7d92eb4fe05cf3b88749fa31ee7
Author: Sindhu S <sindhus live in>
Date: Wed Sep 11 19:27:04 2013 +0530
Add a RebaseController
gitg/Makefile.am | 1 +
gitg/gitg-rebase-controller.vala | 38 ++++++++++++++++++++++++++++++++++++++
gitg/gitg-window.vala | 3 ++-
3 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index b582b37..e99b9a0 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -45,6 +45,7 @@ VALASOURCES = \
gitg-rebase-list-box.vala \
gitg-rebase-parser.vala \
gitg-rebase-window.vala \
+ gitg-rebase-controller.vala \
gitg-rebase-commit-editor-window.vala \
gitg-application.vala \
gitg-plugins-engine.vala \
diff --git a/gitg/gitg-rebase-controller.vala b/gitg/gitg-rebase-controller.vala
new file mode 100644
index 0000000..3cbd20f
--- /dev/null
+++ b/gitg/gitg-rebase-controller.vala
@@ -0,0 +1,38 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2013 - Sindhu S
+ *
+ * gitg is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace Gitg
+{
+ public class RebaseController
+ {
+ public RebaseController()
+ {}
+
+ public void start_rebase()
+ {
+ string gitg_path = "";
+ string git_path = "";
+
+ gitg_path = Environment.find_program_in_path("gitg");
+ git_path = Environment.find_program_in_path("git");
+ stdout.printf("gitg path: %s\n", gitg_path);
+ stdout.printf("git path: %s\n", git_path);
+ }
+ }
+}
\ No newline at end of file
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index ad51060..c5efbe3 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -381,7 +381,8 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
private void on_interactive_rebase_activated()
{
- stdout.printf("Starting Interactive Rebase");
+ var rebase_controller = new RebaseController();
+ rebase_controller.start_rebase();
}
private void on_current_activity_changed(Object obj, ParamSpec pspec)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]