RepoStatusPopover.bjs
[gitlive] / RepoStatusPopover.vala
index b225b1e..548a11c 100644 (file)
@@ -470,7 +470,7 @@ public class RepoStatusPopover : Object
             // my vars (dec)
 
             // set gobject values
-            this.el.label = "Create Branch";
+            this.el.label = "Create Branch / Start ticket";
 
             //listeners
             this.el.button_press_event.connect( () => {
@@ -581,20 +581,16 @@ public class RepoStatusPopover : Object
             // my vars (dec)
 
             // set gobject values
-            this.el.label = "Merge to master";
+            this.el.label = "Merge branch/  ticket";
 
             //listeners
             this.el.button_press_event.connect( () => {
-               _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" });
-               _this.repo.push();
-               _this.repo.loadStatus();
-               
-                _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);
-                _this.status_view.el.get_buffer().set_text(_this.repo.git_status);
-                
+            
                _this.el.hide();
-               Clones.singleton().reposStore.load();
-               
+               Clones.singleton().el.response(-1);
+               if (_this.repos.activeTicket != null) {
+                  MergeBranch.singleton().show(this.repos.activeTicket, null);   
+               }
                 return false;
             });
         }