From bb635f2666014f2682968c85fb73fd431c0a1a82 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 20 Jun 2008 01:22:17 +0200 Subject: Revert "Anti-concurrential git-status for prompt update..." This reverts commit 0389ee35965add0d260f83cd145cb6fe20016aa2. --- 01_Functions.zsh | 25 ------------------------- 11_Colors.zsh | 1 - 2 files changed, 26 deletions(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index be04aba..d4c77bf 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -84,27 +84,6 @@ get_git_branch () get_git_status () { local my_git_status cached not_up_to_date managment_folder - local lockfile previous - - lockfile="$(git rev-parse --git-dir)/.zsh.get_git_status.lock" - previous="$(git rev-parse --git-dir)/.zsh.get_git_status.prev" - - if [ -e $lockfile ] ; then - - my_git_status=$git_colors[running] - - [ "$DEBUG" == "yes" ] && echo >&2 "lockfile $lockfile already present.." - if [ -e $previous ] ; then - [ "$DEBUG" == "yes" ] && eecho >&2 "getting previous status.." - my_git_status=$(cat $previous) - fi - - echo $my_git_status - return - fi - - [ "$DEBUG" == "yes" ] && echo >&2 "creating $lockfile.." - touch $lockfile if [ "$(git-rev-parse --git-dir)" == "." ] ; then echo "$git_colors[managment_folder]" @@ -128,10 +107,6 @@ get_git_status () my_git_status="$git_colors[up_to_date]" fi - [ "$DEBUG" == "yes" ] && echo >&2 "removing $lockfile.." - echo $my_git_status > $previous - rm -f $lockfile - echo $my_git_status } diff --git a/11_Colors.zsh b/11_Colors.zsh index a610064..73f94e2 100644 --- a/11_Colors.zsh +++ b/11_Colors.zsh @@ -73,7 +73,6 @@ set_prompt_colors () git_colors[cached_and_not_up_to_date]="$prompt_colors[not_up_to_date];$color[bold]" git_colors[not_up_to_date]="$prompt_colors[not_up_to_date];$color[normal]" # git changes in working tree git_colors[up_to_date]="$prompt_colors[up_to_date]" # git up-to-date - git_colors[running]="$color[magenta]" # currently running git-status.. } set_prompt_colors -- cgit v1.2.3