X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GitMonitorQueue.vala;h=561aa669d7e513b67adae3b2248a25b346f3367c;hb=6ba3985908498235b2ef11df2681d4072293da64;hp=1af6eca8fcb9e94d313d8b6a85ebf2bcce1316ea;hpb=687788b547e87d4c8f915e175d8896ae7ffdbd47;p=gitlive diff --git a/GitMonitorQueue.vala b/GitMonitorQueue.vala index 1af6eca8..561aa669 100644 --- a/GitMonitorQueue.vala +++ b/GitMonitorQueue.vala @@ -44,11 +44,12 @@ public class GitMonitorQueue : MonitorNamePathDir { this.repo = GitRepo.get(this.gitpath); // trigger the suggestion to start a new branch - - NewBranch.show(this.repo); - + if (!this.shouldIgnore() && !this.repo.currentBranch.name.has_prefix("wip_")) { + NewBranch.singleton().show(this.repo); + } } + public bool shouldIgnore() {