Skip to content

Commit

Permalink
Minor regex optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
IlanCosman committed Jan 3, 2024
1 parent aa314fd commit ceb2fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/_tide_item_git.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit ceb2fc8

Please sign in to comment.