erikw/tmux-powerline — pull request #90 by scicalculator (2012-11-30 04:57:50+00:00)
Title: Improve performance and simplicity of vcs_compare (git portion)

I simplified the vcs_compare git section so that it runs faster and is much easier to understand. Before it was trying to do too much, but the necessary information can be pulled directly out of git in a much simpler way.

* git is only called twiced compared to 5 times previously (git can be slow)
* No more string manipulation
* No more need to write to a temporary file
* No more reliance on the output of "<" or ">" strings, which could change

Sometimes I think this script slowed down the update of tmux statusbar, which makes it blink on and off occasionally. This should happen less or not at all now.