Uncommited changes synced
[gitlive] / GitRepo.vala
index 1075fa2..9cb29f6 100644 (file)
@@ -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.behind > 0  ? "B" : "");
                
                
                this.git_diff  = this.diffWorking();
@@ -705,7 +705,7 @@ public class GitRepo : Object
                ret += " " + line.get_text() ;
                return 0;
        });
-       GLib.debug("returning %s", ret);
+       //GLib.debug("returning %s", ret);
        return ret;
     }