X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=MergeBranch.vala;h=77fb77fe6833333a87d400c8a4eecad96217e79c;hp=a0aa781bfa11ce6bb8854f2d52705fa59da823b2;hb=9e641e366549656621a3e4fc4950b62c4b395650;hpb=1f7e6b712f9ee99d621a3a67f1c0795c6106bde6 diff --git a/MergeBranch.vala b/MergeBranch.vala index a0aa781b..77fb77fe 100644 --- a/MergeBranch.vala +++ b/MergeBranch.vala @@ -21,6 +21,7 @@ public class MergeBranch : Object public Xcls_name name; // my vars (def) + public GitRepo repo; public RooTicket? ticket; public bool running; @@ -85,12 +86,20 @@ public class MergeBranch : Object } */ - GitRepo.doMerges( - _this.actionsel.selectedAction(), - _this.ticketsel.selectedTicketId(), - _this.name.el.get_text() - ); + if (this.repo != null) { + repo.doMerge( + _this.actionsel.selectedAction(), + _this.ticketsel.selectedTicketId(), + _this.name.el.get_text() + ); + } else { + GitRepo.doMerges( + _this.actionsel.selectedAction(), + _this.ticketsel.selectedTicketId(), + _this.name.el.get_text() + ); + } this.running = false; @@ -107,7 +116,7 @@ public class MergeBranch : Object } // user defined functions - public void show ( RooTicket ticket ) + public void show ( RooTicket ticket, GitRepo? repo ) { // this.el.set_gravity(Gdk.Gravity.NORTH); if (this.running) { @@ -116,6 +125,7 @@ public class MergeBranch : Object GitMonitor.gitmonitor.stop(); this.ticket = ticket; + this.repo = repo; this.el.move((Gdk.Screen.width() / 2)- 250 ,0); GLib.debug("Loading tickets");