mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 15:54:40 +00:00
Bugfix: we have to reset the dirty-state once we visited a dirty working copy.
And a bit of formatting.
This commit is contained in:
@@ -103,7 +103,7 @@ prompt_context() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Git: branch/detached head, dirty status
|
# branch/detached head, dirty status
|
||||||
prompt_vcs() {
|
prompt_vcs() {
|
||||||
local vcs_prompt="${vcs_info_msg_0_}"
|
local vcs_prompt="${vcs_info_msg_0_}"
|
||||||
|
|
||||||
@@ -170,6 +170,8 @@ function +vi-git-tagname() {
|
|||||||
function +vi-vcs-detect-changes() {
|
function +vi-vcs-detect-changes() {
|
||||||
if [[ -n ${hook_com[staged]} ]] || [[ -n ${hook_com[unstaged]} ]]; then
|
if [[ -n ${hook_com[staged]} ]] || [[ -n ${hook_com[unstaged]} ]]; then
|
||||||
VCS_WORKDIR_DIRTY=true
|
VCS_WORKDIR_DIRTY=true
|
||||||
|
else
|
||||||
|
VCS_WORKDIR_DIRTY=false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user