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.git({ "diff" , "HEAD", "--no-color" });
+ this.git_diff = this.diffWorking();
}
ret += " " + line.get_text() ;
return 0;
});
- GLib.debug("returning %s", ret);
+ //GLib.debug("returning %s", ret);
return ret;
}