pull/1041/merge
rsvanda 2017-09-15 21:49:43 +00:00 committed by GitHub
commit aeb1ce5f16
1 changed files with 2 additions and 2 deletions

View File

@ -270,8 +270,8 @@ function git_prompt_vars {
[[ "${status}" =~ ${ahead_re} ]] && SCM_BRANCH+=" ${SCM_GIT_AHEAD_CHAR}${BASH_REMATCH[1]}"
[[ "${status}" =~ ${behind_re} ]] && SCM_BRANCH+=" ${SCM_GIT_BEHIND_CHAR}${BASH_REMATCH[1]}"
local stash_count="$(git stash list 2> /dev/null | wc -l | tr -d ' ')"
[[ "${stash_count}" -gt 0 ]] && SCM_BRANCH+=" {${stash_count}}"
# local stash_count="$(git stash list 2> /dev/null | wc -l | tr -d ' ')"
# [[ "${stash_count}" -gt 0 ]] && SCM_BRANCH+=" {${stash_count}}"
SCM_BRANCH+=${details}