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

index e69de29..f7514e5 100644 (file)
@@ -0,0 +1,33 @@
+/**
+represent a git branch..
+
+*/
+
+public class GitBranch : Object
+{
+       public GitRepo repo;
+       
+       public bool active = false;
+       public string lastrev;
+       public string name;
+       public string remote:
+       public string remoterev;
+       
+       public GitBranch(GitRepo repo)
+       {
+               this.repo = repo;
+       }
+
+       public bool parseBranchListItem(str)
+       {
+               if (!str.length) {
+                       return false;
+               }
+               if (
+               
+               var bits = Regex.split_simple ("[ \t]+", str);
+
+               
+       
+       
+       }
\ No newline at end of file