From 9b4c3920811a386a98ba3133bcb3f2c88994c5f7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 15:34:37 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GitRepo.vala b/GitRepo.vala index e7850a41..0b789804 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -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. + } } -- 2.39.2