Merge branch 'fw/complete-cmd-idx-fix'

Recent update to completion script (in contrib/) broke those who
use the __git_complete helper to define completion to their custom
command.

* fw/complete-cmd-idx-fix:
  completion: bash: fix late declaration of __git_cmd_idx
This commit is contained in:
Junio C Hamano 2021-07-08 13:15:02 -07:00
commit a38c4c02e5

View File

@ -3513,6 +3513,7 @@ fi
__git_func_wrap ()
{
local cur words cword prev
local __git_cmd_idx=0
_get_comp_words_by_ref -n =: cur words cword prev
$1
}