From 676266345b5b94de249b5a283936916275ec294f Mon Sep 17 00:00:00 2001 From: Alejandro Baez Date: Fri, 7 Aug 2015 17:31:23 -0400 Subject: [PATCH] mercurial: removed redundant checks --- plugins/mercurial/mercurial.plugin.zsh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/mercurial/mercurial.plugin.zsh b/plugins/mercurial/mercurial.plugin.zsh index 86200ccf6..96fb5f52f 100644 --- a/plugins/mercurial/mercurial.plugin.zsh +++ b/plugins/mercurial/mercurial.plugin.zsh @@ -26,9 +26,7 @@ function in_hg() { } function hg_get_branch_name() { - if [ $(in_hg) ]; then echo $(hg branch) - fi } function hg_prompt_info { @@ -41,7 +39,6 @@ $ZSH_THEME_REPO_NAME_COLOR$_DISPLAY$ZSH_PROMPT_BASE_COLOR$ZSH_PROMPT_BASE_COLOR$ } function hg_dirty_choose { - if [ $(in_hg) ]; then hg status 2> /dev/null | command grep -Eq '^\s*[ACDIM!?L]' if [ $pipestatus[-1] -eq 0 ]; then # Grep exits with 0 when "One or more lines were selected", return "dirty". @@ -50,7 +47,6 @@ function hg_dirty_choose { # Otherwise, no lines were found, or an error occurred. Return clean. echo $2 fi - fi } function hg_dirty {