1
0
mirror of https://github.com/pcvolkmer/vim-fugistate.git synced 2025-07-02 03:42:54 +00:00

Add label configuration for git dir status

This commit is contained in:
2022-01-20 12:48:33 +01:00
parent b47b8091da
commit 0037cb5c6f
3 changed files with 27 additions and 9 deletions

View File

@ -53,20 +53,16 @@ function! fugistate#gitdir()
let s:out = []
if s:changed == 1
call add(s:out, "1 change")
endif
if s:changed > 1
call add(s:out, s:changed . " changes")
if s:changed > 0
call add(s:out, s:changed . " " . g:fugistate_label_changed)
endif
if s:new > 0
call add(s:out, s:new . " new")
call add(s:out, s:new . " " . g:fugistate_label_new)
endif
if s:unversioned > 0
call add(s:out, s:unversioned . " unversioned")
call add(s:out, s:unversioned . " " . g:fugistate_label_unversioned)
endif
return join(s:out, ', ')