From 6db4c4792b138266150f725dc59b235a57dc0f32 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Wed, 5 Apr 2023 10:41:32 +0900 Subject: [PATCH] lib/git: Comment out an overwritten function --- lib/git.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/git.sh b/lib/git.sh index 8a1fcf0..9a9d5f4 100644 --- a/lib/git.sh +++ b/lib/git.sh @@ -3,14 +3,16 @@ _omb_module_require lib:omb-prompt-colors -function git_prompt_info() { - local ref - if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then - ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ - ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0 - echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX" - fi -} +# # Note: The same name of a functionis defined in omb-prompt-base. We comment +# # out this function for now. +# function git_prompt_info() { +# local ref +# if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then +# ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ +# ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0 +# echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX" +# fi +# } # Checks if working tree is dirty function parse_git_dirty() {