GitMonitor.vala
[gitlive] / GitRepo.vala
index d2c5492..e51d150 100644 (file)
@@ -163,11 +163,17 @@ public class GitRepo : Object
         
                var cache = GitRepo.singleton().cache;
         //Repo.superclass.constructor.call(this,cfg);
-         if ( !cache.has_key(path) ) {
-               cache.set( path, this);
+               if ( !cache.has_key(path) ) {
+                       cache.set( path, this);
        }
+       this.loadBranches();
     } 
     
+    public bool is_wip_branch()
+    {
+       return this.currentBranch.name.has_prefix("wip_")
+               
+    }
     
     public bool is_autocommit ()
     {