mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-17 02:00:07 +00:00
correct half-dirty detection -- restrict to untracked files
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
This commit is contained in:
parent
56bc1b3f47
commit
0fd9d277f9
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ function +vi-git-untracked() {
|
||||||
# TODO: check git >= 1.7.2
|
# TODO: check git >= 1.7.2
|
||||||
FLAGS+='--ignore-submodules=dirty'
|
FLAGS+='--ignore-submodules=dirty'
|
||||||
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
|
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
|
||||||
-n $(git status ${FLAGS} 2> /dev/null | tail -n1) ]]; then
|
-n $(git status ${FLAGS} | grep '^??' 2> /dev/null | tail -n1) ]]; then
|
||||||
hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f"
|
hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f"
|
||||||
VCS_WORKDIR_HALF_DIRTY=true
|
VCS_WORKDIR_HALF_DIRTY=true
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue