mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/git: Comment out an overwritten function
This commit is contained in:
18
lib/git.sh
18
lib/git.sh
@@ -3,14 +3,16 @@
|
|||||||
|
|
||||||
_omb_module_require lib:omb-prompt-colors
|
_omb_module_require lib:omb-prompt-colors
|
||||||
|
|
||||||
function git_prompt_info() {
|
# # Note: The same name of a functionis defined in omb-prompt-base. We comment
|
||||||
local ref
|
# # out this function for now.
|
||||||
if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then
|
# function git_prompt_info() {
|
||||||
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
|
# local ref
|
||||||
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
|
# if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then
|
||||||
echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX"
|
# ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
|
||||||
fi
|
# 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
|
# Checks if working tree is dirty
|
||||||
function parse_git_dirty() {
|
function parse_git_dirty() {
|
||||||
|
Reference in New Issue
Block a user