[gitg/wip/sindhus/interactive-rebase] Abort rebase from rebase window



commit 4b1bd58411acbc8cd6875a545bf5952679f57ed3
Author: Sindhu S <sindhus live in>
Date:   Fri Sep 13 20:41:07 2013 +0530

    Abort rebase from rebase window

 gitg/gitg-rebase-window.vala |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-rebase-window.vala b/gitg/gitg-rebase-window.vala
index 8fc475b..c84f9a6 100644
--- a/gitg/gitg-rebase-window.vala
+++ b/gitg/gitg-rebase-window.vala
@@ -36,6 +36,7 @@ namespace Gitg
                {
                        destroy.connect (Gtk.main_quit);
                        r_rebase_start_button.clicked.connect(start_rebase);
+                       r_rebase_abort_button.clicked.connect(abort_rebase);
                }
 
                public void load_rebase_todo(string filepath)
@@ -63,6 +64,16 @@ namespace Gitg
                        catch {}
                        destroy();
                }
+
+               private void abort_rebase()
+               {
+                       try
+                       {
+                               FileUtils.set_contents(r_filepath, "");
+                       }
+                       catch {}
+                       destroy();
+               }
        }
 
 }
\ No newline at end of file


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