From 17864c5c2aadc4b826797a93e96ca26d5c9e1ebe Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 15:10:21 +0800 Subject: [PATCH] GitBranch.vala --- GitBranch.vala | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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 -- 2.39.2