mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
Fix git staged/dirty counters
This commit is contained in:
parent
977b5b2662
commit
781fab9904
@ -62,8 +62,8 @@ function _tide_item_git
|
||||
|
||||
if test "$isInsideWorkTree" = true
|
||||
set -l gitInfo (git status --porcelain)
|
||||
set staged (string match --regex '^[ADMR] ' $gitInfo | count) || set -e staged
|
||||
set dirty (string match --regex '^ [ADMR]' $gitInfo | count) || set -e dirty
|
||||
set staged (string match --regex '^[ADMR].' $gitInfo | count) || set -e staged
|
||||
set dirty (string match --regex '^.[ADMR]' $gitInfo | count) || set -e dirty
|
||||
set untracked (string match --regex '^\?\?' $gitInfo | count) || set -e untracked
|
||||
set conflicted (string match --regex '^UU' $gitInfo | count) || set -e conflicted
|
||||
set stash (git stash list | count) || set -e stash
|
||||
|
Loading…
Reference in New Issue
Block a user