sync
authorAlan Knowles <alan@roojs.com>
Tue, 6 Nov 2018 04:35:39 +0000 (12:35 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Nov 2018 04:35:39 +0000 (12:35 +0800)
GitMonitor.vala
GitRepo.vala

index 052b05f..c739d62 100644 (file)
@@ -250,7 +250,7 @@ public class GitMonitor : Monitor
                }
                
                foreach(var q in this.queue) {
-                       if (!q.shouldIgnore() && !q.repo.is_wip_branch()) {
+                       if (!q.shouldIgnore() && !q.repo.is_wip_branch() && q.repo.is_auto_branch()) {
                                var oldq = this.queue;
                                this.queue =  new Gee.ArrayList<GitMonitorQueue>(); 
                                NewBranch.singleton().show(q.repo, oldq);
index afb8ab4..7ec4f41 100644 (file)
@@ -179,6 +179,11 @@ public class GitRepo : Object
     {
        return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
     }
+    
+    public bool is_auto_branch ()
+    {
+       return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
+    }
     public bool is_autopush ()
     {
        return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.EXISTS);