diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-06-18 17:55:26 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-06-18 17:55:26 +0200 |
commit | 448bb5a6f0ee299d46cdfb90818a564c1aa02545 (patch) | |
tree | ff5eb11de5871283069dfb97d3d3a856dca95b3c /01_Functions.zsh | |
parent | 8b963df1ffa7f51468607bd58444035d0f114de9 (diff) |
Revert "Anti-concurrential git-status for prompt update..."
This reverts commit 0389ee35965add0d260f83cd145cb6fe20016aa2.
Diffstat (limited to '01_Functions.zsh')
-rw-r--r-- | 01_Functions.zsh | 25 |
1 files changed, 0 insertions, 25 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 } |