GitBranch.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 06:42:23 +0000 (14:42 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 06:42:23 +0000 (14:42 +0800)
GitBranch.vala

index 332dc50..82aa89c 100644 (file)
@@ -37,7 +37,7 @@ public class GitBranch : Object
        public string remoterev = "";
        public string age = "";
        
-    Ggit.RemoteHead[]                          remote_heads = null;
+     
        
        public string toString()
        {
@@ -57,17 +57,6 @@ public class GitBranch : Object
                this.repo = repo;
        }
        
-       public void loadRemoteHeads(bool force = false)
-       {
-               
-               if (!force && this.remote_heads != null) {
-                       return;
-               }
-               var r = this.repo.lookup_remote("origin");
-               r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
-               this.remote_heads = r.list();
-       
-       }
        
        
 
@@ -80,7 +69,7 @@ public class GitBranch : Object
                var remotes  =  new Gee.HashMap<string,GitBranch>();
                
                
-               this.loadLocalBranches();
+               this.repo.repo.loadLocalBranches();
                this.loadRemoteHeads();