GitRepo.vala
[gitlive] / GitRepo.vala
index 71fafbe..0b78980 100644 (file)
@@ -140,12 +140,27 @@ public class GitRepo : Object
     
     public bool is_autocommit ()
     {
-       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.IS_EXIST);
+       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
     }
     public bool is_autopush ()
     {
-       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.IS_EXIST);
-    }    
+       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.EXISTS);
+    }
+    
+    Gee.HashMap<string,GitBranch> branches;
+    
+    public void loadBranches()
+    {
+       string[] cmd = { "branch",   "--no-color", "--verbose", "--no-abbrev" , "-a"  };
+        var res = this.git( cmd );
+        var lines = res.split("\n");
+        for (var i = 0; i < lines.length ; i++) {
+               var br = new GitBranch(this);
+               br.
+        }
+    
+    }
+    
     /**
      * add:
      * add files to track.