mirror of
https://github.com/IlanCosman/tide.git
synced 2024-07-14 19:30:33 +03:00
Minor regex optimization
This commit is contained in:
parent
aa314fdcb7
commit
ceb2fc801b
@ -50,7 +50,7 @@ function _tide_item_git
|
||||
(0|(?<dirty>.*))\n(0|(?<untracked>.*))(\n(0|(?<behind>.*))\t(0|(?<ahead>.*)))?' \
|
||||
"$(git $_set_dir_opt stash list 2>/dev/null | count
|
||||
string match -r ^UU $stat | count
|
||||
string match -r ^[ADMR]. $stat | count
|
||||
string match -r ^[ADMR] $stat | count
|
||||
string match -r ^.[ADMR] $stat | count
|
||||
string match -r '^\?\?' $stat | count
|
||||
git rev-list --count --left-right @{upstream}...HEAD 2>/dev/null)"
|
||||
|
Loading…
Reference in New Issue
Block a user