X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.vala;h=136505ccc2da831a13da1cf55eede22cba48ecd0;hp=0e363fb427d919c9e585718e3f494e9b3068cf73;hb=2d3bb6db4cf59fb23b8774360ee0f15ffb7dc975;hpb=9e641e366549656621a3e4fc4950b62c4b395650 diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 0e363fb4..136505cc 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -384,8 +384,15 @@ public class RepoStatusPopover : Object //listeners this.el.button_press_event.connect( () => { - _this.el.hide(); - return false; + _this.repo.git({ "stash" , "--all" }); + _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); + Clones.singleton().reposStore.load(); + + _this.el.hide(); + return false; }); } @@ -413,8 +420,17 @@ public class RepoStatusPopover : Object //listeners this.el.button_press_event.connect( () => { - _this.el.hide(); - return false; + _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(); + + return false; }); }