GitRepo.vala
[gitlive] / GitRepo.vala
index 91feb4c..7985e81 100644 (file)
@@ -176,9 +176,10 @@ public class GitRepo : Object
        this.loadStatus();
     } 
     
-    public bool is_wip_branch()
+    public bool is_master_branch()
     {
-       return this.currentBranch.name.has_prefix("wip_");
+       // special branches that do not allow autopushing now...
+       return this.currentBranch.name == "master" || this.currentBranch.name == "roojs";
                
     }
     
@@ -197,7 +198,7 @@ public class GitRepo : Object
     
     
     public bool is_autocommit ()
-    {
+    {          
        return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
     }
     public void set_autocommit(bool val)
@@ -219,6 +220,11 @@ public class GitRepo : Object
     
     public bool is_auto_branch ()
     {
+       if (this.name == "gitlog") {
+               return false;
+               }
+               // check remote...
+       
        return FileUtils.test(this.gitdir + "/.gitlive-enable-auto-branch" , FileTest.EXISTS);
     }