made the lib/git.zsh file check the version of git that is being used and ajust the arguments for the git status call accordingly

This commit is contained in:
Alex Light 2012-01-26 18:15:51 -05:00
commit ef625adb07

View file

@ -17,7 +17,11 @@ parse_git_dirty() {
# echos false otherwise
is_legacy_git() {
checkit() {
if [ $1 -gt 1 -o $2 -gt 7 -o $3 -ge 2 ]; then
if [ $1 -gt 1 ]; then
echo false
elif [ $1 -eq 1 -a $2 -gt 7 ]; then
echo false
elif [ $1 -eq 1 -a $2 -eq 7 -a $3 -ge 2 ]; then
echo false
else
echo true