[gitg/wip/sindhus/interactive-rebase] Abort rebase from commit editor



commit 4e7d1caac668ecb92498c3d11c45c7e32a2d272d
Author: Sindhu S <sindhus live in>
Date:   Fri Sep 13 20:37:37 2013 +0530

    Abort rebase from commit editor

 gitg/gitg-rebase-commit-editor-window.vala |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-rebase-commit-editor-window.vala b/gitg/gitg-rebase-commit-editor-window.vala
index 4e27ffb..b6cb0f2 100644
--- a/gitg/gitg-rebase-commit-editor-window.vala
+++ b/gitg/gitg-rebase-commit-editor-window.vala
@@ -37,6 +37,7 @@ namespace Gitg
                {
                        destroy.connect (Gtk.main_quit);
                        r_rebase_continue_button.clicked.connect(save_and_continue);
+                       r_rebase_abort_button.clicked.connect(abort_rebase);
                }
 
                public void load_commit_file(string filename)
@@ -66,6 +67,14 @@ namespace Gitg
                        catch {}
                        destroy();
                }
+
+               private void abort_rebase()
+               {
+                       string repository_path;
+                       var rebase_controller = new RebaseController(".");
+                       rebase_controller.abort_rebase();
+                       destroy();
+               }
        }
 
 }
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]