GitMonitorQueue.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 Nov 2018 04:17:53 +0000 (12:17 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Nov 2018 04:17:53 +0000 (12:17 +0800)
GitMonitorQueue.vala

index 561aa66..6ed40e7 100644 (file)
@@ -44,7 +44,7 @@ public class GitMonitorQueue : MonitorNamePathDir {
                        this.repo = GitRepo.get(this.gitpath);
                        
                        // trigger the suggestion to start a new branch
                        this.repo = GitRepo.get(this.gitpath);
                        
                        // trigger the suggestion to start a new branch
-                       if (!this.shouldIgnore() && !this.repo.currentBranch.name.has_prefix("wip_")) {
+                       if (!this.shouldIgnore() && !this.repo.is_wip_branch()) {
                                NewBranch.singleton().show(this.repo);
                        }
                }
                                NewBranch.singleton().show(this.repo);
                        }
                }