Skip to content

Commit

Permalink
Fix git local branch completions to include packed refs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Jul 2, 2024
1 parent 026b86d commit d0f32bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ local function list_local_branches(dir)

local result = w(path_module.list_files(git_dir..'/refs/heads', '/*',
--[[recursive=]]true, --[[reverse_separator=]]true))
:concat(list_packed_refs(git_dir, 'heads'))
:sort():dedupe()

return result
end
Expand Down

0 comments on commit d0f32bb

Please sign in to comment.