GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Thu, 15 Nov 2018 09:18:00 +0000 (17:18 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 15 Nov 2018 09:18:00 +0000 (17:18 +0800)
GitRepo.vala

index ed0f286..5bb562f 100644 (file)
@@ -822,7 +822,15 @@ public class GitRepo : Object
  
         
     
+     public delegate void GitAsyncCallback (GitRepo repo, int err, string str);
+    public void _async(GitAsyncCallback cb) 
+    {
     
+         string[] cmd = { "fetch" , "--all" };
+         this.git_async( cmd , cb);
+         
+    
+    }
     
     
     static uint update_all_total = 0;