X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;fp=GitRepo.vala;h=2de3ab9cad8780966d8068693b9223e71f565c1d;hp=1075fa25edd8dbc064d4a324beb9889a3b54ab18;hb=463d9bef7c47a41870bd411d603f5642d71b0690;hpb=f5e09619ca68916e803fe63f8c9c67d78d1f150a 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();