mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(picker.git): parse all detached states. See #671
This commit is contained in:
parent
233356e6c9
commit
2cac6678a9
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ function M.branches(opts)
|
|||
local patterns = {
|
||||
-- stylua: ignore start
|
||||
--- e.g. "* (HEAD detached at f65a2c8) f65a2c8 chore(build): auto-generate docs"
|
||||
"^(.)%s(%(HEAD detached at " .. pattern_hash .. "%))%s+(" .. pattern_hash .. ")%s*(.*)$",
|
||||
"^(.)%s(%b())%s+(" .. pattern_hash .. ")%s*(.*)$",
|
||||
--- e.g. " main d2b2b7b [origin/main: behind 276] chore(build): auto-generate docs"
|
||||
"^(.)%s(%S+)%s+(".. pattern_hash .. ")%s*(.*)$",
|
||||
-- stylua: ignore end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue