revert pull 797

pull/808/head
MunifTanjim 2016-10-21 21:03:51 +06:00
parent 255c66dd43
commit 8c9777df43
1 changed files with 7 additions and 7 deletions

View File

@ -84,13 +84,13 @@ function scm_prompt_vars {
}
function scm_prompt_info {
scm_prompt_vars
if [ $SCM == $SCM_HG ]; then
echo -e "$SCM_PREFIX$SCM_BRANCH:${SCM_CHANGE#*:}$SCM_STATE$SCM_SUFFIX"
else
echo -e "$SCM_PREFIX$SCM_BRANCH$SCM_STATE$SCM_SUFFIX"
fi
return
scm
scm_prompt_char
SCM_DIRTY=0
SCM_STATE=''
[[ $SCM == $SCM_GIT ]] && git_prompt_info && return
[[ $SCM == $SCM_HG ]] && hg_prompt_info && return
[[ $SCM == $SCM_SVN ]] && svn_prompt_info && return
}
function git_status_summary {