From 83d1ed2a61e96d581ebdba4055437d78ae0e4a83 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 28 Oct 2008 11:34:36 +0100 Subject: Do not check {git,svn} {status,branch} --- 01_Functions.zsh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '01_Functions.zsh') diff --git a/01_Functions.zsh b/01_Functions.zsh index b5b0fce..0cb57b0 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -59,6 +59,10 @@ get_git_branch () { local my_git_branch REBASE + if [ ! -z "$DO_NOT_CHECK_GIT_BRANCH" ] + then return + fi + [ "$( ( git-ls-tree HEAD . 2>&- ; git-ls-files . 2>&- ) | head -n 1)" == "" ] && return # Rebase in progress ? @@ -90,7 +94,11 @@ get_git_branch () get_git_status () { local my_git_status cached not_up_to_date managment_folder - + + if [ ! -z "$DO_NOT_CHECK_GIT_STATUS" ] + then return + fi + if [ "$(git-rev-parse --git-dir)" == "." ] ; then echo "$git_colors[managment_folder]" return -- cgit v1.2.3