From 9c305a5a93598b3dc5845f14d1febeb9a7fb4021 Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Tue, 7 Jan 2014 10:31:33 +0100 Subject: [PATCH] Renames GIT_HIDE for better consistency. --- lib/git.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/git.zsh b/lib/git.zsh index ac266b8ae..0d8d8d3cc 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -13,8 +13,8 @@ # The symbols used to show dirtyness (evaluated in parse_git_dirty) are # ZSH_THEME_GIT_PROMPT_DIRTY # ZSH_THEME_GIT_PROMPT_CLEAN -# Can be disabled if GIT_HIDE == 'true' or through your git config (see -# check_git_show_status below) +# Can be disabled if ZSH_THEME_GIT_PROMPT_HIDE == 'true' +# or through your git config (see check_git_show_status below) # Dirty submodules are not tracked f your git version is post 1.7.2. # To ignore untracked files making your branch dirty, set # DISABLE_UNTRACKED_FILES_DIRTY to 'true' @@ -54,7 +54,7 @@ # get the name of the branch we are on function git_prompt_info() { local branch - [[ GIT_HIDE == 'true' ]] && return + [[ ZSH_THEME_GIT_PROMPT_HIDE == 'true' ]] && return branch=$(current_branch) || return 1 printf '%s%s%s%s\n' \ $ZSH_THEME_GIT_PROMPT_PREFIX \ @@ -75,7 +75,7 @@ git_current_branch() { # Checks if working tree is dirty parse_git_dirty() { - [[ GIT_HIDE == 'true' ]] && return + [[ ZSH_THEME_GIT_PROMPT_HIDE == 'true' ]] && return if git_is_clean; then echo $ZSH_THEME_GIT_PROMPT_CLEAN else @@ -199,7 +199,7 @@ check_git_show_status() { # no need to set options if status is hidden anyway set_git_status_options else - GIT_HIDE='true' + ZSH_THEME_GIT_PROMPT_HIDE='true' fi }