From ceb2fc801b8afbe902fb29efcc1346d9c4d6db5b Mon Sep 17 00:00:00 2001 From: Ilan Cosman Date: Wed, 3 Jan 2024 12:43:53 -0800 Subject: [PATCH] Minor regex optimization --- functions/_tide_item_git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_tide_item_git.fish b/functions/_tide_item_git.fish index 3154acc9..56e1e315 100644 --- a/functions/_tide_item_git.fish +++ b/functions/_tide_item_git.fish @@ -50,7 +50,7 @@ function _tide_item_git (0|(?.*))\n(0|(?.*))(\n(0|(?.*))\t(0|(?.*)))?' \ "$(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)"