Merge pull request 'Fix grep 3.8 warnings' (#13) from hdkv/zsh-config:hdkv/fix_grep_warnings into master

Reviewed-on: misc/zsh-config#13
This commit is contained in:
Stanislav Nikitin 2023-04-25 15:07:16 +05:00
commit aab95d22c9

View File

@ -145,7 +145,7 @@ function gitinfo_get_stashes()
######################################################################
function gitinfo_get_untracked()
{
GITINFO_UNTRACKED_COUNT=`LC_ALL=C git status | grep -v "be\ committed\|On\ branch\|nothing\ added\|Untracked\ files\|git\ add\|Your\ branch\|new\ file\|git\ reset\|nothing\ to\ commit\|not\ staged\|git\ checkout\|modified\:" | sed '/^$/d' | wc -l | sed "s/ //g"`
GITINFO_UNTRACKED_COUNT=`LC_ALL=C git status | grep -v "be committed|On branch|nothing added|Untracked files|git add|Your branch|new file|git reset|nothing to commit|not staged|git checkout|modified:" | sed '/^$/d' | wc -l | sed "s/ //g"`
}