/** 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; } this.active = str[0] == '*'; var bits = Regex.split_simple ("[ \t]+", str); }