GitRepo.vala
[gitlive] / GitRepo.vala
index 4e018e5..ef8bf2b 100644 (file)
@@ -22,11 +22,12 @@ public class GitRepo : Object
     public Gee.HashMap<string,bool> ignore_files;
     public GitBranch currentBranch;
 
+       public RooTicket? activeTicket;
 
        public static GitRepo singleton()
     {
         if (_GitRepo == null) {
-            _GitRepo = new GitRepo();
+            _GitRepo = new GitRepo.single();
             _GitRepo.cache = new Gee.HashMap<string,GitRepo>();
         }
         return _GitRepo;
@@ -137,9 +138,9 @@ public class GitRepo : Object
                return new GitRepo(path);
        }
        
-    
-   
+    private GitRepo.single() {
+               // used to create the signleton
+       }
     /**
      * constructor:
      * 
@@ -165,6 +166,7 @@ public class GitRepo : Object
          if ( !cache.has_key(path) ) {
                cache.set( path, this);
        }
+       this.loadBranches();
     } 
     
     
@@ -200,6 +202,10 @@ public class GitRepo : Object
         }
     
     }
+     
+    
+    
+    
     public string branchesToString()
     {
        var ret = "";