From 468c5a20e39994a911914274368dd2bc8d3b5c6f Mon Sep 17 00:00:00 2001 From: Alex Light Date: Thu, 26 Jan 2012 17:57:43 -0500 Subject: [PATCH] updated git.zsh so that the git status indicator will work even with older versions of git. Also cleaned up some crap --- lib/git.zsh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/git.zsh b/lib/git.zsh index 03f337941..7b4bc1224 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -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