GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 07:34:37 +0000 (15:34 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 07:34:37 +0000 (15:34 +0800)
GitRepo.vala

index e7850a4..0b78980 100644 (file)
@@ -151,8 +151,13 @@ public class GitRepo : Object
     
     public void loadBranches()
     {
-       string[] cmd = { "add",    f  };
+       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.
+        }
     
     }