Skip to content

Commit 39fc399

Browse files
committed
lib/git: Comment out an overwritten function
1 parent 08d019b commit 39fc399

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

lib/git.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33

44
_omb_module_require lib:omb-prompt-colors
55

6-
function git_prompt_info() {
7-
local ref
8-
if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then
9-
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
10-
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
11-
echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX"
12-
fi
13-
}
6+
# # Note: The same name of a functionis defined in omb-prompt-base. We comment
7+
# # out this function for now.
8+
# function git_prompt_info() {
9+
# local ref
10+
# if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then
11+
# ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
12+
# ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
13+
# echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX"
14+
# fi
15+
# }
1416

1517
# Checks if working tree is dirty
1618
function parse_git_dirty() {

0 commit comments

Comments
 (0)