File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -561,15 +561,19 @@ _git_prompt_kit_update_git() {
561561 fi
562562
563563 if (( triangular_workflow )) ; then
564- if (( VCS_STATUS_PUSH_COMMITS_AHEAD || VCS_STATUS_PUSH_COMMITS_BEHIND )) ; then
565- GIT_PROMPT_KIT_PUSH+=" %F{$color_push_remote }"
566- fi
567564
568565 if [[ $VCS_STATUS_PUSH_REMOTE_NAME != $GIT_PROMPT_KIT_DEFAULT_PUSH_REMOTE_NAME ]]; then
569- GIT_PROMPT_KIT_PUSH+=" $GIT_PROMPT_KIT_SYMBOL_PUSH_REMOTE$VCS_STATUS_PUSH_REMOTE_NAME "
566+ if (( VCS_STATUS_PUSH_COMMITS_AHEAD || VCS_STATUS_PUSH_COMMITS_BEHIND )) ; then
567+ GIT_PROMPT_KIT_PUSH+=" %F{$color_push_remote }"
568+ # DUPE this `if`'s `then` and `else`
569+ GIT_PROMPT_KIT_PUSH+=" $GIT_PROMPT_KIT_SYMBOL_PUSH_REMOTE$VCS_STATUS_PUSH_REMOTE_NAME "
570+ GIT_PROMPT_KIT_PUSH+=" %F{$color_inactive }"
571+ else
572+ # DUPE this `if`'s `then` and `else`
573+ GIT_PROMPT_KIT_PUSH+=" $GIT_PROMPT_KIT_SYMBOL_PUSH_REMOTE$VCS_STATUS_PUSH_REMOTE_NAME "
574+ fi
570575 fi
571576
572- GIT_PROMPT_KIT_PUSH+=" %F{$color_inactive }"
573577
574578 # push remote branch would go here
575579
You can’t perform that action at this time.
0 commit comments