complete fix for both case POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true/false
This commit is contained in:
parent
2070f34df3
commit
40c123f2ac
|
@ -3426,8 +3426,7 @@ function _p9k_vcs_render() {
|
||||||
|
|
||||||
if (( _POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING )); then
|
if (( _POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING )); then
|
||||||
if [[ -z $state ]]; then
|
if [[ -z $state ]]; then
|
||||||
#echo "myMOD"
|
#if [[ $VCS_STATUS_HAS_CONFLICTED == 1 && $_POWERLEVEL9K_VCS_CONFLICTED_STATE == 1 ]]; then # old
|
||||||
#if [[ $VCS_STATUS_HAS_CONFLICTED == 1 && $_POWERLEVEL9K_VCS_CONFLICTED_STATE == 1 ]]; # old
|
|
||||||
if [[ $VCS_STATUS_HAS_CONFLICTED == 1 ]]; then # new
|
if [[ $VCS_STATUS_HAS_CONFLICTED == 1 ]]; then # new
|
||||||
state=CONFLICTED
|
state=CONFLICTED
|
||||||
elif [[ $VCS_STATUS_HAS_STAGED != 0 || $VCS_STATUS_HAS_UNSTAGED != 0 ]]; then
|
elif [[ $VCS_STATUS_HAS_STAGED != 0 || $VCS_STATUS_HAS_UNSTAGED != 0 ]]; then
|
||||||
|
@ -3485,7 +3484,8 @@ function _p9k_vcs_render() {
|
||||||
local content
|
local content
|
||||||
|
|
||||||
if (( ${_POWERLEVEL9K_VCS_GIT_HOOKS[(I)vcs-detect-changes]} )); then
|
if (( ${_POWERLEVEL9K_VCS_GIT_HOOKS[(I)vcs-detect-changes]} )); then
|
||||||
if [[ $VCS_STATUS_HAS_CONFLICTED == 1 && $_POWERLEVEL9K_VCS_CONFLICTED_STATE == 1 ]]; then
|
#if [[ $VCS_STATUS_HAS_CONFLICTED == 1 && $_POWERLEVEL9K_VCS_CONFLICTED_STATE == 1 ]]; then
|
||||||
|
if [[ $VCS_STATUS_HAS_CONFLICTED == 1 ]]; then
|
||||||
: ${state:=CONFLICTED}
|
: ${state:=CONFLICTED}
|
||||||
elif [[ $VCS_STATUS_HAS_STAGED != 0 || $VCS_STATUS_HAS_UNSTAGED != 0 ]]; then
|
elif [[ $VCS_STATUS_HAS_STAGED != 0 || $VCS_STATUS_HAS_UNSTAGED != 0 ]]; then
|
||||||
: ${state:=MODIFIED}
|
: ${state:=MODIFIED}
|
||||||
|
|
Loading…
Reference in New Issue