From: Alan Knowles Date: Tue, 30 Oct 2018 07:10:21 +0000 (+0800) Subject: GitBranch.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=17864c5c2aadc4b826797a93e96ca26d5c9e1ebe GitBranch.vala --- diff --git a/GitBranch.vala b/GitBranch.vala index e69de29b..f7514e52 100644 --- a/GitBranch.vala +++ b/GitBranch.vala @@ -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