updated git.zsh so that the git status indicator will work even with older versions of git. Also cleaned up some crap

This commit is contained in:
Alex Light 2012-01-26 17:57:43 -05:00
commit 468c5a20e3

View file

@ -6,8 +6,6 @@ function git_prompt_info() {
# Checks if working tree is dirty
parse_git_dirty() {
#do stuff here
ver=$(git --version | cut -d " " -f 3)
if $(is_legacy_git); then
echo $(parse_legacy_git_dirty)
else
@ -46,8 +44,6 @@ parse_recent_git_dirty() {
fi
}
# Checks if there are commits ahead from remote
function git_prompt_ahead() {
if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then