From 463d9bef7c47a41870bd411d603f5642d71b0690 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 27 Mar 2019 11:58:02 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 1075fa25..2de3ab9c 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -335,10 +335,10 @@ public class GitRepo : Object this.git_status = r; this.has_local_changes = r.length > 0; - var rs = this.git({ "status" , "-sb" }); - + //var rs = this.git({ "status" , "-sb" }); + var cb = this.getCurrentBranch(); - this.ahead_or_behind = rs.contains("[ahead") ? "A" : (rs.contains("[behind") ? "B" : ""); + this.ahead_or_behind = cb.ahead > 0 ? "A" : (cb.benind > 0 ? "B" : ""); this.git_diff = this.diffWorking(); -- 2.39.2