fix(picker.git): parse all detached states. See #671

This commit is contained in:
Folke Lemaitre 2025-01-21 08:42:12 +01:00
parent 233356e6c9
commit 2cac6678a9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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